From 8e10c0b3d5dfd7d36d1cb06b58ab683347885c86 Mon Sep 17 00:00:00 2001 From: Vladimir Grichina Date: Thu, 18 Jul 2019 22:34:52 -0700 Subject: [PATCH] Fix deployContract to work with latest nearlib --- index.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/index.js b/index.js index ac2230a3..7d273fdb 100755 --- a/index.js +++ b/index.js @@ -76,14 +76,7 @@ exports.deploy = async function(options) { `Starting deployment. Account id: ${options.accountId}, node: ${options.nodeUrl}, helper: ${options.helperUrl}, file: ${options.wasmFile}`); const near = await connect(options); const contractData = [...fs.readFileSync(options.wasmFile)]; - const res = await near.waitForTransactionResult( - await near.deployContract(options.accountId, contractData)); - if (res.status == "Completed") { - console.log("Deployment succeeded."); - } else { - console.log("Deployment transaction did not succeed: ", res); - process.exit(1); - } + await near.deployContract(options.accountId, contractData); }; exports.scheduleFunctionCall = async function(options) {