Skip to content

Commit 10a1c7c

Browse files
committed
fix gasPrice for legacy chain 88/89
1 parent e125e74 commit 10a1c7c

File tree

1 file changed

+5
-0
lines changed
  • packages/thirdweb/src/wallets/smart/lib

1 file changed

+5
-0
lines changed

packages/thirdweb/src/wallets/smart/lib/userop.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ async function getGasFees(args: {
269269
maxPriorityFeePerGas =
270270
resolvedMaxPriorityFeePerGas ?? feeData.maxPriorityFeePerGas ?? 0n;
271271
maxFeePerGas = resolvedMaxFeePerGas ?? feeData.maxFeePerGas ?? 0n;
272+
273+
if(chain.id === 88 || chain.id === 89) {
274+
maxPriorityFeePerGas = maxPriorityFeePerGas ?? feeData.gasPrice ?? 0n
275+
maxFeePerGas = maxFeePerGas ?? feeData.gasPrice ?? 0n
276+
}
272277
}
273278
}
274279
return { maxFeePerGas, maxPriorityFeePerGas };

0 commit comments

Comments
 (0)