From ad14033b33fa228b5c4979ce790bf24293777c7e Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 21 Apr 2021 11:38:53 +0200 Subject: [PATCH] fix add transaction --- libs/remix-lib/src/execution/txRunner.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/remix-lib/src/execution/txRunner.ts b/libs/remix-lib/src/execution/txRunner.ts index e3b66e6ef6..fd288b35eb 100644 --- a/libs/remix-lib/src/execution/txRunner.ts +++ b/libs/remix-lib/src/execution/txRunner.ts @@ -134,9 +134,10 @@ export class TxRunner { coinbase: coinbases[self.blockNumber % coinbases.length], difficulty: difficulties[self.blockNumber % difficulties.length], gasLimit: new BN(gasLimit.replace('0x', ''), 16).imuln(2) - } + }, + transactions: [tx] }, { common: this.commonContext }) - + if (!useCall) { ++self.blockNumber this.runBlockInVm(tx, block, callback)