Skip to content

Commit 050dfd5

Browse files
authored
feat(entrykit): add pyrope fee estimation (#3640)
1 parent 783f380 commit 050dfd5

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎.changeset/nasty-berries-warn.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@latticexyz/entrykit": patch
3+
---
4+
5+
Added explicit gas estimation for Pyrope to avoid overpaying.

‎packages/entrykit/src/createBundlerClient.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ function createFeeEstimator(client: Client): undefined | (() => Promise<Estimate
5555
return async () => ({ maxFeePerGas: 100_000n, maxPriorityFeePerGas: 0n });
5656
}
5757

58-
// do our own fee calculation for redstone, garnet, rhodolite chains
58+
// do our own fee calculation for redstone, garnet, rhodolite, pyrope chains
5959
// because viem sets fees way too high by default
6060
// https://github.com/wevm/viem/blob/253b1072ad9fe36a0e0491e173c85a6d69209ada/src/account-abstraction/actions/bundler/prepareUserOperation.ts#L436-L457
61-
if ([690, 17069, 17420].includes(client.chain.id)) {
61+
if ([690, 17069, 17420, 695569].includes(client.chain.id)) {
6262
// TODO: move to fee ref or similar approach
6363
return () => getAction(client, estimateFeesPerGas, "estimateFeesPerGas")({ chain: client.chain });
6464
}

0 commit comments

Comments
 (0)