Skip to content

Commit

Permalink
fix: transfer fee add transactionType (#2860)
Browse files Browse the repository at this point in the history
  • Loading branch information
sokolova-an authored Dec 13, 2024
1 parent 3239e33 commit 0209088
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/renderer/widgets/Transfer/model/form-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
import { createTxStore } from '@/shared/transactions';
import { balanceModel, balanceUtils } from '@/entities/balance';
import { networkModel, networkUtils } from '@/entities/network';
import { transactionBuilder, transactionService } from '@/entities/transaction';
import { TransferType, transactionBuilder, transactionService } from '@/entities/transaction';
import { accountUtils, walletModel, walletUtils } from '@/entities/wallet';
import { TransferRules } from '@/features/operations/OperationsValidation';
import { type NetworkStore } from '../lib/types';
Expand Down Expand Up @@ -216,17 +216,17 @@ const $fakeTx = combine(
{
network: $networkStore,
isConnected: $isChainConnected,
isXcm: $isXcm,
xcmData: xcmTransferModel.$xcmData,
},
({ isConnected, network, isXcm, xcmData }): Transaction | null => {
({ isConnected, network, xcmData }): Transaction | null => {
if (!network || !isConnected) return null;
console.log(xcmData, isXcm);

const transactionType = network.asset.type ? TransferType[network.asset.type] : TransactionType.TRANSFER;

return {
chainId: network.chain.chainId,
address: toAddress(TEST_ACCOUNTS[0], { prefix: network.chain.addressPrefix }),
type: TransactionType.TRANSFER,
type: transactionType,
args: { destination: toAddress(TEST_ACCOUNTS[0], { prefix: network.chain.addressPrefix }), ...xcmData?.args },
};
},
Expand Down

0 comments on commit 0209088

Please sign in to comment.