Skip to content

Commit 1096460

Browse files
committed
Fix build errors
1 parent 44decd3 commit 1096460

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/evm/src/opcodes/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export function isPowerOfTwo(val: bigint): boolean {
210210
}
211211

212212
export function makeEVMMAXArithGasFunc(opCosts: number[]): Function {
213-
return function (runState, gas, common) {
213+
return function (runState: RunState, gas: number, common: Common) {
214214
const [out, outStride, x, xStride, y, yStride, count] = extractEVMMAXImmediateInputs(
215215
runState.programCounter,
216216
runState.code,
@@ -225,7 +225,7 @@ export function makeEVMMAXArithGasFunc(opCosts: number[]): Function {
225225
trap('bad parameters')
226226
}
227227

228-
return gas + count * opCosts[runState.evmmax.getActive().modulus.length - 1]
228+
return gas + count * opCosts[runState.evmmaxState.getActive().modulus.length - 1]
229229
}
230230
}
231231

0 commit comments

Comments
 (0)