Skip to content

Commit

Permalink
fix estimateGas
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed Apr 3, 2024
1 parent a736967 commit ca23719
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/remix-lib/src/execution/txRunnerVM.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand Down

0 comments on commit ca23719

Please sign in to comment.