Skip to content

Commit

Permalink
Forward any blockTag along in the FallbackProvider during call (#3168).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Jul 14, 2022
1 parent c309df8 commit ab43e7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/providers/src.ts/fallback-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ async function getRunner(config: RunningConfig, currentBlockNumber: number, meth
if (params.blockTag && isHexString(params.blockTag)) {
provider = await waitForSync(config, currentBlockNumber)
}
if (method === "call" && params.blockTag) {
return provider[method](params.transaction, params.blockTag);
}
return provider[method](params.transaction);
case "getTransaction":
case "getTransactionReceipt":
Expand Down

0 comments on commit ab43e7d

Please sign in to comment.