Skip to content

Commit

Permalink
fix(connect): eip1559 correct maxFeePerGas
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Dec 11, 2024
1 parent 7513ee0 commit 9be9e26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ export default class EthereumSignTransaction extends AbstractMethod<
...tx,
...signature,
type: isLegacy ? 0 : 2, // 0 for legacy, 2 for EIP-1559
gasPrice: isLegacy ? tx.gasPrice : null,
maxFeePerGas: isLegacy ? tx.maxFeePerGas : tx.maxPriorityFeePerGas,
gasPrice: isLegacy ? tx.gasPrice : undefined,
maxFeePerGas: !isLegacy ? tx.maxFeePerGas : undefined,
maxPriorityFeePerGas: !isLegacy ? tx.maxPriorityFeePerGas : undefined,
} as LegacyTxData | FeeMarketEIP1559TxData;

Expand Down

0 comments on commit 9be9e26

Please sign in to comment.