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,