File tree 3 files changed +14
-0
lines changed
3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,9 @@ export const gasEstimationArgsSchema = z.object({
217
217
"v7-paymaster-verification-gas-limit-multiplier" : z
218
218
. string ( )
219
219
. transform ( ( val ) => BigInt ( val ) ) ,
220
+ "v7-paymaster-post-op-gas-limit-multiplier" : z
221
+ . string ( )
222
+ . transform ( ( val ) => BigInt ( val ) ) ,
220
223
"simulation-call-gas-limit" : z . string ( ) . transform ( ( val ) => BigInt ( val ) ) ,
221
224
"simulation-verification-gas-limit" : z
222
225
. string ( )
Original file line number Diff line number Diff line change @@ -181,6 +181,13 @@ export const gasEstimationOptions: CliCommandOptions<IGasEstimationArgsInput> =
181
181
require : true ,
182
182
default : "130"
183
183
} ,
184
+ "v7-paymaster-post-op-gas-limit-multiplier" : {
185
+ description :
186
+ "Amount to multiply the paymasterPostOp limits fetched from simulations for v7 userOperations" ,
187
+ type : "string" ,
188
+ require : true ,
189
+ default : "120"
190
+ } ,
184
191
"paymaster-gas-limit-multiplier" : {
185
192
description :
186
193
"Amount to multiply the paymaster gas limits fetched from simulations" ,
Original file line number Diff line number Diff line change @@ -583,6 +583,10 @@ export class RpcHandler {
583
583
callGasLimit ,
584
584
this . config . v7CallGasLimitMultiplier
585
585
)
586
+ paymasterPostOpGasLimit = scaleBigIntByPercent (
587
+ paymasterPostOpGasLimit ,
588
+ this . config . v7PaymasterPostOpGasLimitMultiplier
589
+ )
586
590
}
587
591
588
592
let preVerificationGas = await calcPreVerificationGas ( {
You can’t perform that action at this time.
0 commit comments