Skip to content

Commit 857aa8c

Browse files
committed
Prevent CCIP-read flags being passed to EtherscanProvider (ethers-io#4043)
1 parent 3df09fc commit 857aa8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src.ts/providers/provider-etherscan.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ export class EtherscanPlugin extends NetworkPlugin {
9696
}
9797
}
9898

99+
const skipKeys = [ "enableCcipRead" ];
100+
99101
let nextId = 1;
100102

101103
/**
@@ -308,6 +310,8 @@ export class EtherscanProvider extends AbstractProvider {
308310
_getTransactionPostData(transaction: TransactionRequest): Record<string, string> {
309311
const result: Record<string, string> = { };
310312
for (let key in transaction) {
313+
if (skipKeys.indexOf(key) >= 0) { continue; }
314+
311315
if ((<any>transaction)[key] == null) { continue; }
312316
let value = (<any>transaction)[key];
313317
if (key === "type" && value === 0) { continue; }

0 commit comments

Comments
 (0)