Skip to content

Commit

Permalink
feat: add support for mantle gas fee estimation (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooohneth authored Nov 14, 2024
1 parent 764126b commit a1c11ef
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions cli/src/evmsigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,21 @@ export class EvmNativeSigner<N extends Network, C extends EvmChains = EvmChains>

const signed = [];

// default gas limit
const gasLimit = chain === 'ArbitrumSepolia'
? 4_000_000n
: this.opts?.maxGasLimit ?? 500_000n;
let gasLimit: bigint;

// Specialized for Mantle and Arbitrum Sepolia
switch (chain) {
case 'Mantle':
gasLimit = 2600_000_000_000n;
break;
case 'ArbitrumSepolia':
gasLimit = 4_000_000n;
break;
default:
// default gas limit
gasLimit = this.opts?.maxGasLimit ?? 500_000n;
break;
}


// TODO: DIFF STARTS HERE
Expand Down

0 comments on commit a1c11ef

Please sign in to comment.