Skip to content

Commit ab43e7d

Browse files
committed
Forward any blockTag along in the FallbackProvider during call (#3168).
1 parent c309df8 commit ab43e7d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/providers/src.ts/fallback-provider.ts

+3
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ async function getRunner(config: RunningConfig, currentBlockNumber: number, meth
381381
if (params.blockTag && isHexString(params.blockTag)) {
382382
provider = await waitForSync(config, currentBlockNumber)
383383
}
384+
if (method === "call" && params.blockTag) {
385+
return provider[method](params.transaction, params.blockTag);
386+
}
384387
return provider[method](params.transaction);
385388
case "getTransaction":
386389
case "getTransactionReceipt":

0 commit comments

Comments
 (0)