Ignore blockTag when calling Etherscan if it is the default block tag.

This commit is contained in:
Richard Moore 2023-09-12 21:28:14 -04:00
parent bc6cfbf2cc
commit dcea9b3536

@ -321,6 +321,7 @@ export class EtherscanProvider extends AbstractProvider {
if ((<any>transaction)[key] == null) { continue; }
let value = (<any>transaction)[key];
if (key === "type" && value === 0) { continue; }
if (key === "blockTag" && value === "latest") { continue; }
// Quantity-types require no leading zero, unless 0
if ((<any>{ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true })[key]) {