use next blocknumber even for calls

pull/3598/head
yann300 2 years ago
parent 7b8785d8e7
commit 221d562d7e
  1. 2
      libs/remix-lib/src/execution/txRunnerVM.ts

@ -107,7 +107,7 @@ export class TxRunnerVM {
const difficulties = [69762765929000, 70762765929000, 71762765929000]
const difficulty = this.commonContext.consensusType() === ConsensusType.ProofOfStake ? 0 : difficulties[this.blockNumber % difficulties.length]
const blocknumber = useCall ? this.blockNumber : this.blockNumber + 1
const blocknumber = this.blockNumber + 1
const block = Block.fromBlockData({
header: {
timestamp: new Date().getTime() / 1000 | 0,

Loading…
Cancel
Save