fix estimateGas

pull/4678/head
yann300 8 months ago
parent a7369679ac
commit ca2371918f
  1. 6
      libs/remix-lib/src/execution/txRunnerVM.ts

@ -140,9 +140,9 @@ export class TxRunnerVM {
callback(err, result)
})
} else {
await this.getVMObject().vm.evm.journal.checkpoint()
this.runTxInVm(tx, block, async (err, result) => {
await this.getVMObject().vm.evm.journal.revert()
const root = await this.getVMObject().stateManager.getStateRoot()
this.runBlockInVm(tx, block, async (err, result) => {
await this.getVMObject().stateManager.setStateRoot(root)
callback(err, result)
})
}

Loading…
Cancel
Save