Skip to content

Commit e002b4e

Browse files
committed
disable the Safe gas tank for mega eth as we need a special estimation there
1 parent e6faadd commit e002b4e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/libs/account/Safe.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ export class Safe extends BaseAccount {
7676
feePaymentOptions: FeePaymentOption[]
7777
): FeePaymentOption[] {
7878
const hasPaymaster =
79-
estimation.bundlerEstimation && estimation.bundlerEstimation.paymaster.isUsable()
79+
estimation.bundlerEstimation &&
80+
estimation.bundlerEstimation.paymaster.isUsable() &&
81+
// disable the Safe gas tank for megaeth for now as we need a special
82+
// estimation implementation for it to make it work
83+
this.network.chainId !== 4326n
8084

8185
return feePaymentOptions.filter(
8286
(opt) => isNative(opt.token) || (hasPaymaster && opt.token.flags.onGasTank)

0 commit comments

Comments
 (0)