diff --git a/src.ts/providers/provider-etherscan.ts b/src.ts/providers/provider-etherscan.ts index 745f5f652..899d8abdf 100644 --- a/src.ts/providers/provider-etherscan.ts +++ b/src.ts/providers/provider-etherscan.ts @@ -321,6 +321,7 @@ export class EtherscanProvider extends AbstractProvider { if ((transaction)[key] == null) { continue; } let value = (transaction)[key]; if (key === "type" && value === 0) { continue; } + if (key === "blockTag" && value === "latest") { continue; } // Quantity-types require no leading zero, unless 0 if (({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true })[key]) {