Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
undefined value type fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Jan 29, 2020
1 parent 69df97e commit 963e63b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion remix-lib/src/execution/txRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,13 @@ class TxRunner {
} else {
// See https://github.com/ethereumjs/ethereumjs-tx/blob/master/docs/classes/transaction.md#constructor
// for initialization fields and their types
value = value ? parseInt(value) : 0
const tx = new EthJSTX({
nonce: new BN(res.nonce),
gasPrice: '0x1',
gasLimit: gasLimit,
to: to,
value: parseInt(value),
value: value,
data: Buffer.from(data.slice(2), 'hex')
})
tx.sign(account.privateKey)
Expand Down

0 comments on commit 963e63b

Please sign in to comment.