Skip to content

Commit

Permalink
feat: add pvg scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
SahilVasava committed Feb 12, 2025
1 parent 249d349 commit 176d443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rpc/rpcHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ export class RpcHandler implements IRpcEndpoint {
}

// const preVerificationGas = 0n
const preVerificationGas = await calcPreVerificationGas({
let preVerificationGas = await calcPreVerificationGas({
config: this.config,
userOperation: {
...userOperation,
Expand All @@ -1155,7 +1155,7 @@ export class RpcHandler implements IRpcEndpoint {
gasPriceManager: this.gasPriceManager,
validate: false
})
// preVerificationGas = scaleBigIntByPercent(preVerificationGas, 110)
preVerificationGas = scaleBigIntByPercent(preVerificationGas, 110)

// Check if userOperation passes without estimation balance overrides
if (isVersion06(simulationUserOperation)) {
Expand Down

0 comments on commit 176d443

Please sign in to comment.