Skip to content

Commit 32b00c5

Browse files
authored
evm: maxGasLimit undefined check (#585)
1 parent 17b87af commit 32b00c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platforms/evm/src/signer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class EvmNativeSigner<N extends Network, C extends EvmChains = EvmChains>
117117
}
118118
}
119119

120-
if (this.opts?.maxGasLimit) {
120+
if (this.opts?.maxGasLimit !== undefined) {
121121
// why doesnt math.min work for bigints?
122122
gasLimit =
123123
gasLimit > this.opts?.maxGasLimit ? this.opts?.maxGasLimit : gasLimit;

0 commit comments

Comments
 (0)