From bb621a30495678d6c9d35388701e188ca58fbaf1 Mon Sep 17 00:00:00 2001 From: John Shutt Date: Tue, 27 Jul 2021 13:32:50 -0700 Subject: [PATCH] fix(bug): remove chain id from transaction options Signed-off-by: John Shutt --- index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 89795f3..7a5c6be 100644 --- a/index.js +++ b/index.js @@ -86,8 +86,7 @@ const libraryAddress = argv.libraryAddress ? argv.libraryAddress : "0x0000000000 const transactionOptions = { gas: 12000000, // 12MM is very high. Set this lower if you only have < 2 ETH or so in your wallet. gasPrice: argv.gasprice * 1000000000, // gasprice arg * 1 GWEI - from: account, - chainId: await web3.eth.getChainId() + from: account }; // Simulate transaction to test before sending to the network. @@ -98,7 +97,7 @@ const libraryAddress = argv.libraryAddress ? argv.libraryAddress : "0x0000000000 // Since the simulated transaction succeeded, send the real one to the network. const { transactionHash } = await empCreator.methods.createExpiringMultiParty(empParams).send(transactionOptions); console.log("Deployed in transaction:", transactionHash); - + // Print out ABI-encoded constructor params to aid block-explorer verification. const emp = new web3.eth.Contract( getAbi("ExpiringMultiParty"),