From 7a0761930b9a4061ef8a9d5eaf4eb7de70f37b3e Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Mon, 25 Sep 2023 10:53:55 +1000 Subject: [PATCH] try replay without decrementing block number --- ethers/provider.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethers/provider.nim b/ethers/provider.nim index f092861..77fc49d 100644 --- a/ethers/provider.nim +++ b/ethers/provider.nim @@ -161,7 +161,7 @@ proc replay*(provider: Provider, tx: Transaction, blockNumber: UInt256) {.async. # the same block BEFORE this transaction will not have their state transitions # included in the replay. # More information: https://snakecharmers.ethereum.org/web3py-revert-reason-parsing/ - discard await provider.call(tx, BlockTag.init(blockNumber - 1)) + discard await provider.call(tx, BlockTag.init(blockNumber)) method getRevertReason*( provider: Provider,