tx: fill out the rawTx before sending the rawTx
commit25c54b61ced3e8f188e2cfb4d3fe1df33318fee7
authorFang <git@fang.io>
dateFri 17 Jul 2020, 16:38 (6 years ago)
parente5d76b3
src/lib/txn.js+1−1
@@ -107,8 +107,8 @@ const sendSignedTransaction = (web3, stx, doubtNonceError) => {
107107 if (stx instanceof FakeMetamaskTransaction) {
108108 eventEmitter = web3.eth.sendTransaction(stx.txnData);
109109 } else {
110− eventEmitter = web3.eth.sendSignedTransaction(rawTx);
111110 rawTx = hexify(stx.serialize());
111+ eventEmitter = web3.eth.sendSignedTransaction(rawTx);
112112 }
113113 return new Promise(async (resolve, reject) => {
114114 eventEmitter