Skip to content

Commit

Permalink
fix(suite): walletconnect sign eip1559 transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
martykan committed Feb 14, 2025
1 parent fe02e75 commit 794bdb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion suite-common/walletconnect/src/adapters/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const ethereumRequestThunk = createThunk<
if (account.networkType !== 'ethereum') {
throw new Error('Account is not Ethereum');
}
if (!transaction.gasPrice) {
if (!transaction.gasPrice && !transaction.maxFeePerGas) {
// Fee not provided, estimate it
const feeLevels = await TrezorConnect.blockchainEstimateFee({
coin: account.symbol,
Expand Down Expand Up @@ -126,6 +126,9 @@ const ethereumRequestThunk = createThunk<
}
transaction.gas = estimatedFee.payload.levels[0].feeLimit;
}
if (!transaction.value) {
transaction.value = '0x0';
}
const { nonce } = await dispatch(
ethereumGetCurrentNonceThunk({ selectedAccount: account }),
).unwrap();
Expand Down

0 comments on commit 794bdb8

Please sign in to comment.