From 963e63b6c1653c855fa138b269c705d2274c4439 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 28 Jan 2020 19:22:02 +0530 Subject: [PATCH] undefined value type fixed --- remix-lib/src/execution/txRunner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remix-lib/src/execution/txRunner.js b/remix-lib/src/execution/txRunner.js index c08074a96..92653be7e 100644 --- a/remix-lib/src/execution/txRunner.js +++ b/remix-lib/src/execution/txRunner.js @@ -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)