Skip to content

Commit

Permalink
Add 'parseInt'
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Oct 2, 2024
1 parent 32b21c2 commit d62820f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions packages/bundler/localconfig/bundler.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"chainId": 1337,
"gasFactor": "1",
"port": "3000",
"privateApiPort": "3001",
Expand All @@ -8,8 +9,8 @@
"minBalance": "1",
"mnemonic": "./localconfig/mnemonic.txt",
"maxBundleGas": 5e6,
"minStake": "1" ,
"minUnstakeDelay": 0 ,
"minStake": "1",
"minUnstakeDelay": 0,
"autoBundleInterval": 3,
"autoBundleMempoolSize": 10,
"rip7560": false,
Expand Down
4 changes: 2 additions & 2 deletions packages/bundler/localconfig/bundler.rip7560.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"minBalance": "1",
"mnemonic": "./localconfig/mnemonic.txt",
"maxBundleGas": 30e6,
"minStake": "1" ,
"minUnstakeDelay": 0 ,
"minStake": "1",
"minUnstakeDelay": 0,
"autoBundleInterval": 3,
"autoBundleMempoolSize": 10,
"rip7560": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/src/PreVerificationGasCalculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class PreVerificationGasCalculator {
const minRequiredPreVerificationGas = this._calculate(userOp)
return {
minRequiredPreVerificationGas,
isPreVerificationGasValid: minRequiredPreVerificationGas <= userOp.preVerificationGas
isPreVerificationGasValid: minRequiredPreVerificationGas <= parseInt(userOp.preVerificationGas.toString())
}
}

Expand Down

0 comments on commit d62820f

Please sign in to comment.