undefined value type fixed

pull/7/head
aniket-engg 5 years ago committed by Aniket
parent 69df97eb6e
commit 963e63b6c1
  1. 3
      remix-lib/src/execution/txRunner.js

@ -106,12 +106,13 @@ class TxRunner {
} else { } else {
// See https://github.com/ethereumjs/ethereumjs-tx/blob/master/docs/classes/transaction.md#constructor // See https://github.com/ethereumjs/ethereumjs-tx/blob/master/docs/classes/transaction.md#constructor
// for initialization fields and their types // for initialization fields and their types
value = value ? parseInt(value) : 0
const tx = new EthJSTX({ const tx = new EthJSTX({
nonce: new BN(res.nonce), nonce: new BN(res.nonce),
gasPrice: '0x1', gasPrice: '0x1',
gasLimit: gasLimit, gasLimit: gasLimit,
to: to, to: to,
value: parseInt(value), value: value,
data: Buffer.from(data.slice(2), 'hex') data: Buffer.from(data.slice(2), 'hex')
}) })
tx.sign(account.privateKey) tx.sign(account.privateKey)

Loading…
Cancel
Save