fix: legacy gas-price fallback to use the typed getFeeData result instead of the non-existent
Some checks failed
build / lint (push) Successful in 12s
build / build (push) Failing after 29s

This commit is contained in:
2026-01-30 11:45:35 +00:00
parent 3e0784971a
commit 6051e7bcda

View File

@@ -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,