diff --git a/remix-lib/src/execution/txRunner.js b/remix-lib/src/execution/txRunner.js index e01340ad8b..c08074a968 100644 --- a/remix-lib/src/execution/txRunner.js +++ b/remix-lib/src/execution/txRunner.js @@ -107,11 +107,11 @@ class TxRunner { // See https://github.com/ethereumjs/ethereumjs-tx/blob/master/docs/classes/transaction.md#constructor // for initialization fields and their types const tx = new EthJSTX({ - nonce: '0x' + res.nonce.toString('hex'), + nonce: new BN(res.nonce), gasPrice: '0x1', gasLimit: gasLimit, to: to, - value: value, + value: parseInt(value), data: Buffer.from(data.slice(2), 'hex') }) tx.sign(account.privateKey)