Skip to content

Commit

Permalink
fixup! feat(suite): introduce network displaySymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
adderpositive committed Dec 22, 2024
1 parent 0d79d6d commit eef8bc2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions suite-common/wallet-core/src/send/sendFormEthereumThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
ExternalOutput,
AddressDisplayOptions,
} from '@suite-common/wallet-types';
import { getNetwork, getNetworkDisplaySymbol, NetworkSymbol } from '@suite-common/wallet-config';
import { getNetwork, getNetworkDisplaySymbol } from '@suite-common/wallet-config';

import { selectTransactions } from '../transactions/transactionsReducer';
import {
Expand All @@ -44,7 +44,6 @@ const calculate = (
availableBalance: string,
output: ExternalOutput,
feeLevel: FeeLevel,
symbol: NetworkSymbol,
token?: TokenInfo,
): PrecomposedTransaction => {
let amount: string;
Expand Down Expand Up @@ -72,7 +71,6 @@ const calculate = (
errorMessage: {
id: 'AMOUNT_NOT_ENOUGH_CURRENCY_FEE_WITH_ETH_AMOUNT',
values: {
symbol: getNetworkDisplaySymbol(symbol),
feeAmount: fromWei(feeInGwei, 'ether').toString(),
},
},
Expand Down Expand Up @@ -223,7 +221,7 @@ export const composeEthereumTransactionFeeLevelsThunk = createThunk<
// wrap response into PrecomposedLevels object where key is a FeeLevel label
const resultLevels: PrecomposedLevels = {};
const response = predefinedLevels.map(level =>
calculate(availableBalance, output, level, network.symbol, tokenInfo),
calculate(availableBalance, output, level, tokenInfo),
);
response.forEach((tx, index) => {
const feeLabel = predefinedLevels[index].label as FeeLevel['label'];
Expand Down

0 comments on commit eef8bc2

Please sign in to comment.