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 7c95a09 commit d21aa76Copy full SHA for d21aa76
src/modules/ethereum/transactions/gasPrices/assignGasPrice.ts
@@ -22,8 +22,12 @@ export function assignGasPrice<
22
transaction: T,
23
gasPrice: GasPriceObject
24
): T & (ClassicGasPriceProps | EIP1559Props) {
25
+ // Prefer non-zero number for "classic", but prefer zero over nullish:
26
const classicGasPrices =
- gasPrice.classic || gasPrice.optimistic?.underlying.classic;
27
+ gasPrice.classic ||
28
+ gasPrice.optimistic?.underlying.classic ||
29
+ (gasPrice.classic ?? gasPrice.optimistic?.underlying.classic);
30
+
31
const eip1559GasPrices =
32
gasPrice.eip1559 || gasPrice.optimistic?.underlying.eip1559;
33
if (eip1559GasPrices) {
0 commit comments