Skip to content

Commit 3ae23b7

Browse files
[thirdweb] fix: Force pre-EIP1559 transactions on Homeverse chains
1 parent 1405289 commit 3ae23b7

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Force pre-eip1559 tx on Homeverse mainnet/testnet

apps/dashboard/src/components/buttons/MismatchButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ const GAS_FREE_CHAINS = [
6161
300, // zksync sepolia
6262
7225878, // Saakuru Mainnet
6363
247253, // Saakuru Testnet
64+
19011, // Homeverse Mainnet
65+
40875, // Homeverse Testnet
6466
];
6567

6668
function useIsNetworkMismatch(txChainId: number) {

packages/thirdweb/src/gas/fee-data.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ const FORCE_GAS_PRICE_CHAIN_IDS = [
4040
1942999413, // Humanity Testnet
4141
1952959480, // Lumia Testnet
4242
994873017, // Lumia Mainnet
43+
19011, // Homeverse Mainnet
44+
40875, // Homeverse Testnet
4345
];
4446

4547
/**
@@ -89,7 +91,7 @@ export async function getGasOverridesForTransaction(
8991
}
9092

9193
// return as is
92-
if (defaultGasOverrides.gasPrice) {
94+
if (defaultGasOverrides.gasPrice !== undefined) {
9395
return defaultGasOverrides;
9496
}
9597

packages/thirdweb/src/transaction/actions/estimate-gas-cost.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function estimateGasCost(
3838
transaction.chain,
3939
);
4040
const gasPrice = fees.maxFeePerGas || fees.gasPrice;
41-
if (!gasPrice) {
41+
if (gasPrice === undefined) {
4242
throw new Error(
4343
`Unable to determine gas price for chain ${transaction.chain.id}`,
4444
);

0 commit comments

Comments
 (0)