add the block if no internal error

pull/3598/head
yann300 2 years ago
parent 4cf3a7bc7d
commit 781ee65d9f
  1. 2
      libs/remix-lib/src/execution/txRunnerVM.ts

@ -125,7 +125,7 @@ export class TxRunnerVM {
this.blockNumber = this.blockNumber + 1 this.blockNumber = this.blockNumber + 1
this.blockParentHash = block.hash() this.blockParentHash = block.hash()
this.runBlockInVm(tx, block, (err, result) => { this.runBlockInVm(tx, block, (err, result) => {
this.getVMObject().vm.blockchain.putBlock(block) if (!err) this.getVMObject().vm.blockchain.putBlock(block)
callback(err, result) callback(err, result)
}) })
} else { } else {

Loading…
Cancel
Save