Skip to content

Commit

Permalink
keep existing interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless0x committed Dec 4, 2024
1 parent 82349b4 commit 3c2dcf6
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/executor/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,19 +835,18 @@ export class Executor {
try {
const isLegacyTransaction = this.config.legacyTransactions

// const gasPrice = gasPriceParameters

//if (this.config.noProfitBundling) {
// const gasPrice = totalBeneficiaryFees / gasLimit
// if (isLegacyTransaction) {
// gasParameter.gasPrice = gasPrice
// } else {
// gasOptions.maxFeePerGas = maxBigInt(
// gasPrice,
// gasOptions.maxFeePerGas || 0n
// )
// }
//}
if (this.config.noProfitBundling) {
const gasPrice = totalBeneficiaryFees / gasLimit
if (isLegacyTransaction) {
gasPriceParameters.maxFeePerGas = gasPrice
gasPriceParameters.maxPriorityFeePerGas = gasPrice
} else {
gasPriceParameters.maxFeePerGas = maxBigInt(
gasPrice,
gasPriceParameters.maxFeePerGas || 0n
)
}
}

const authorizationList = opsWithHashToBundle
.map(({ mempoolUserOperation }) =>
Expand Down

0 comments on commit 3c2dcf6

Please sign in to comment.