From b84a0086b0d9659d332550bf6bdf4a80c1807f43 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 10 May 2021 22:09:38 +0200 Subject: [PATCH] use BN --- libs/remix-lib/src/execution/txRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-lib/src/execution/txRunner.ts b/libs/remix-lib/src/execution/txRunner.ts index ddc2456fb5..2606fcc01d 100644 --- a/libs/remix-lib/src/execution/txRunner.ts +++ b/libs/remix-lib/src/execution/txRunner.ts @@ -118,7 +118,7 @@ export class TxRunner { this.executionContext.vm().stateManager.getAccount(Address.fromString(from)).then((res) => { // 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 + value = value ? new BN(value, 10) : 0 const tx = Transaction.fromTxData({ nonce: new BN(res.nonce), gasPrice: '0x1',