We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a26e1 commit 66fbe30Copy full SHA for 66fbe30
packages/thirdweb/src/gas/fee-data.ts
@@ -169,7 +169,7 @@ async function getDynamicFeeData(
169
eth_maxPriorityFeePerGas(rpcRequest).catch(() => null),
170
]);
171
172
- const baseBlockFee = block?.baseFeePerGas ?? 0n;
+ const baseBlockFee = block?.baseFeePerGas;
173
174
const chainId = chain.id;
175
// flag chain testnet & flag chain
@@ -187,7 +187,7 @@ async function getDynamicFeeData(
187
maxPriorityFeePerGas_ = maxPriorityFeePerGas;
188
}
189
190
- if (maxPriorityFeePerGas_ == null) {
+ if (maxPriorityFeePerGas_ == null || baseBlockFee == null) {
191
// chain does not support eip-1559, return null for both
192
return { maxFeePerGas: null, maxPriorityFeePerGas: null };
193
0 commit comments