type mismatch fix for VM transaction instance

pull/5370/head
aniket-engg 5 years ago committed by Aniket
parent a9271d8486
commit 1421d4bac0
  1. 4
      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)

Loading…
Cancel
Save