diff --git a/platforms/evm/src/signer.ts b/platforms/evm/src/signer.ts index cdc84fb10..20aab16e0 100644 --- a/platforms/evm/src/signer.ts +++ b/platforms/evm/src/signer.ts @@ -23,6 +23,8 @@ import { _platform } from './types.js'; export type EvmSignerOptions = { // Whether or not to log messages debug?: boolean; + // Override gas limit + gasLimit?: bigint; // Do not exceed this gas limit maxGasLimit?: bigint; // Partially override specific transaction request fields @@ -117,6 +119,10 @@ export class EvmNativeSigner } } + if (this.opts?.gasLimit !== undefined) { + gasLimit = this.opts.gasLimit; + } + if (this.opts?.maxGasLimit !== undefined) { // why doesnt math.min work for bigints? gasLimit =