From 857aa8ccc30f25eda8e83dcac3e0ad2c1a5ce2b3 Mon Sep 17 00:00:00 2001 From: Richard Moore Date: Fri, 23 Jun 2023 00:33:43 -0400 Subject: [PATCH] Prevent CCIP-read flags being passed to EtherscanProvider (#4043) --- src.ts/providers/provider-etherscan.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src.ts/providers/provider-etherscan.ts b/src.ts/providers/provider-etherscan.ts index 2d58f964cb..9b28c7aa0c 100644 --- a/src.ts/providers/provider-etherscan.ts +++ b/src.ts/providers/provider-etherscan.ts @@ -96,6 +96,8 @@ export class EtherscanPlugin extends NetworkPlugin { } } +const skipKeys = [ "enableCcipRead" ]; + let nextId = 1; /** @@ -308,6 +310,8 @@ export class EtherscanProvider extends AbstractProvider { _getTransactionPostData(transaction: TransactionRequest): Record { const result: Record = { }; for (let key in transaction) { + if (skipKeys.indexOf(key) >= 0) { continue; } + if ((transaction)[key] == null) { continue; } let value = (transaction)[key]; if (key === "type" && value === 0) { continue; }