Skip to content

Commit e8f4b29

Browse files
committed
remove invalid chainId param from tx
1 parent 31c3c32 commit e8f4b29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/ethereumUtils.ts

+2
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,8 @@ const calculateL1FeeOptimism = async (tx: RainbowTransaction, provider: Provider
502502
newTx.nonce = Number(await provider.getTransactionCount(newTx.from));
503503
}
504504

505+
// @ts-expect-error operand should be optional
506+
delete newTx?.chainId;
505507
// @ts-expect-error operand should be optional
506508
delete newTx?.from;
507509
// @ts-expect-error gas is not in type RainbowTransaction

0 commit comments

Comments
 (0)