Skip to content

Commit

Permalink
Inline variable
Browse files Browse the repository at this point in the history
  • Loading branch information
forshtat committed Oct 15, 2024
1 parent 4b4f1e9 commit 057a32a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/sdk/src/PreVerificationGasCalculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,7 @@ export class PreVerificationGasCalculator {
const userOpSpecificOverhead = callDataCost + userOpDataWordsOverhead + this.config.perUserOpGasOverhead
const userOpShareOfBundleCost = this.config.fixedGasOverhead / this.config.expectedBundleSize

const preVerificationGas = Math.round(userOpSpecificOverhead + userOpShareOfBundleCost)
console.log(`calculate preVerificationGas: ${preVerificationGas} callDataCost: ${callDataCost}`)
return preVerificationGas
return Math.round(userOpSpecificOverhead + userOpShareOfBundleCost)
}

_fillUserOpWithDummyData (userOp: Partial<UserOperation>): UserOperation {
Expand Down

0 comments on commit 057a32a

Please sign in to comment.