Skip to content

Commit a1c11ef

Browse files
authored
feat: add support for mantle gas fee estimation (#552)
1 parent 764126b commit a1c11ef

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

cli/src/evmsigner.ts

+15-4
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,21 @@ export class EvmNativeSigner<N extends Network, C extends EvmChains = EvmChains>
104104

105105
const signed = [];
106106

107-
// default gas limit
108-
const gasLimit = chain === 'ArbitrumSepolia'
109-
? 4_000_000n
110-
: this.opts?.maxGasLimit ?? 500_000n;
107+
let gasLimit: bigint;
108+
109+
// Specialized for Mantle and Arbitrum Sepolia
110+
switch (chain) {
111+
case 'Mantle':
112+
gasLimit = 2600_000_000_000n;
113+
break;
114+
case 'ArbitrumSepolia':
115+
gasLimit = 4_000_000n;
116+
break;
117+
default:
118+
// default gas limit
119+
gasLimit = this.opts?.maxGasLimit ?? 500_000n;
120+
break;
121+
}
111122

112123

113124
// TODO: DIFF STARTS HERE

0 commit comments

Comments
 (0)