Skip to content
Closed
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion packages/thirdweb/src/gas/fee-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
2020, // Ronin Mainnet
2021, // Ronin Testnet (Saigon)
98866, // Plume mainnet
89, // Viction Testnet
88, // Viction Mainnet
];

/**
Expand Down Expand Up @@ -135,8 +137,16 @@
resolvedFeeType === "legacy" ||
FORCE_GAS_PRICE_CHAIN_IDS.includes(chain.id)
) {
const gasPrice = await getGasPrice({ chain, client, percentMultiplier: 10 })
if(chain.id === 88 || chain.id === 89) {
return {
maxPriorityFeePerGas: gasPrice || 0n,
maxFeePerGas: gasPrice || 0n
}
}

Check warning on line 146 in packages/thirdweb/src/gas/fee-data.ts

View check run for this annotation

Codecov / codecov/patch

packages/thirdweb/src/gas/fee-data.ts#L140-L146

Added lines #L140 - L146 were not covered by tests

return {
gasPrice: await getGasPrice({ chain, client, percentMultiplier: 10 }),
gasPrice,

Check warning on line 149 in packages/thirdweb/src/gas/fee-data.ts

View check run for this annotation

Codecov / codecov/patch

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

Added line #L149 was not covered by tests
};
}
const feeData = await getDynamicFeeData(client, chain);
Expand Down
Loading