Skip to content
This repository was archived by the owner on Oct 20, 2024. It is now read-only.

Commit 2018000

Browse files
authored
Fix verificationGasLimit typo (#89)
1 parent 48b8adb commit 2018000

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/preset/middleware/gasLimit.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ import { UserOperationMiddlewareFn } from "../../types";
44

55
interface GasEstimate {
66
preVerificationGas: BigNumberish;
7-
verificationGas: BigNumberish;
7+
verificationGasLimit: BigNumberish;
88
callGasLimit: BigNumberish;
9+
10+
// TODO: remove this with EntryPoint v0.7
11+
verificationGas: BigNumberish;
912
}
1013

1114
const estimateCreationGas = async (
@@ -36,6 +39,7 @@ export const estimateUserOperationGas =
3639
])) as GasEstimate;
3740

3841
ctx.op.preVerificationGas = est.preVerificationGas;
39-
ctx.op.verificationGasLimit = est.verificationGas;
42+
ctx.op.verificationGasLimit =
43+
est.verificationGasLimit ?? est.verificationGas;
4044
ctx.op.callGasLimit = est.callGasLimit;
4145
};

0 commit comments

Comments
 (0)