diff --git a/lib/src/main/java/com/circle/modularwallets/core/apis/bundler/BundlerApiImpl.kt b/lib/src/main/java/com/circle/modularwallets/core/apis/bundler/BundlerApiImpl.kt index e84c396..dd4481c 100644 --- a/lib/src/main/java/com/circle/modularwallets/core/apis/bundler/BundlerApiImpl.kt +++ b/lib/src/main/java/com/circle/modularwallets/core/apis/bundler/BundlerApiImpl.kt @@ -197,7 +197,7 @@ internal object BundlerApiImpl : BundlerApi { try { if (partialUserOp.maxFeePerGas == null || partialUserOp.maxPriorityFeePerGas == null) { if (estimateFeesPerGas == null) { - val defaultMaxFeePerGas = parseGwei("3") + val defaultMaxFeePerGas = defaultMaxFeePerGasFor(bundlerClient.chain.chainId) val defaultMaxPriorityFeePerGas = parseGwei("1") val two = BigInteger.valueOf(2) val fees = publicApi.estimateFeesPerGas( @@ -359,6 +359,22 @@ internal fun getUpdatedCalls(calls: Array): Array parseGwei("0.05") + else -> parseGwei("3") +} internal suspend fun startPolling( pollingInterval: Long, retryCount: Int,