Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Doctor-Cyclone committed Mar 27, 2024
1 parent c572f4b commit 617bf97
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import BigNumber from 'bignumber.js';
import { PriceTokenAmount } from 'src/common/tokens';
import { BLOCKCHAIN_NAME } from 'src/core/blockchain/models/blockchain-name';
import { BlockchainsInfo } from 'src/core/blockchain/utils/blockchains-info/blockchains-info';
import { blockchainId } from 'src/core/blockchain/utils/blockchains-info/constants/blockchain-id';
import { EvmEncodeConfig } from 'src/core/blockchain/web3-pure/typed-web3-pure/evm-web3-pure/models/evm-encode-config';
Expand Down Expand Up @@ -48,9 +49,13 @@ export async function getMethodArgumentsAndTransactionData<
const fromTokenAddress = createTokenNativeAddressProxy(
fromWithoutFee,
bridgersNativeAddress,
false
!(from.blockchain === BLOCKCHAIN_NAME.TRON)
).address;
const toTokenAddress = createTokenNativeAddressProxy(
to,
bridgersNativeAddress,
!(to.blockchain === BLOCKCHAIN_NAME.TRON)
).address;
const toTokenAddress = createTokenNativeAddressProxy(to, bridgersNativeAddress, false).address;
const fromAddress = options.fromAddress || walletAddress;
const swapRequest: BridgersSwapRequest = {
fromTokenAddress,
Expand Down

0 comments on commit 617bf97

Please sign in to comment.