From 6051e7bcda85951d2e63b81ea479ffe0d037b8bc Mon Sep 17 00:00:00 2001 From: Urko Date: Fri, 30 Jan 2026 11:45:35 +0000 Subject: [PATCH] fix: legacy gas-price fallback to use the typed `getFeeData` result instead of the non-existent --- app/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/page.tsx b/app/page.tsx index dd3d693..c784715 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -319,7 +319,8 @@ export default function HomePage() { // Fallback to legacy gasPrice if EIP-1559 style send fails or simulates a revert setStatusMessage(t("status.feeFallback"), "info", "status.feeFallback"); const gasPrice = - (await signerRef.current.provider?.getGasPrice?.()) || ethers.parseUnits("50", "gwei"); + (await signerRef.current.provider?.getFeeData?.())?.gasPrice || + ethers.parseUnits("50", "gwei"); tx = await signerRef.current.sendTransaction({ ...txRequest, gasLimit,