From b06dcc3c7cbbdffaf19349c93c0bc72885d5a3a9 Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Mon, 6 Nov 2023 18:51:31 +0100 Subject: [PATCH] remove unnecessary changes --- packages/sdk/src/getTransferData/getSourceData.ts | 6 ++++-- packages/sdk/src/getTransferData/getTransferData.utils.ts | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/sdk/src/getTransferData/getSourceData.ts b/packages/sdk/src/getTransferData/getSourceData.ts index b4aade41..7abb32ff 100644 --- a/packages/sdk/src/getTransferData/getSourceData.ts +++ b/packages/sdk/src/getTransferData/getSourceData.ts @@ -49,7 +49,8 @@ export async function getSourceData({ amount: 0n, decimals: await getDecimals({ address: destinationAddress, - config: config.fee, + asset: config.fee.asset, + config, evmSigner, polkadot, }), @@ -60,7 +61,8 @@ export async function getSourceData({ amount: 0n, decimals: await getDecimals({ address: destinationAddress, - config: config.destinationFee, + asset: config.destinationFee.asset, + config, evmSigner, polkadot, }), diff --git a/packages/sdk/src/getTransferData/getTransferData.utils.ts b/packages/sdk/src/getTransferData/getTransferData.utils.ts index 874b65e1..f0c4b1ac 100644 --- a/packages/sdk/src/getTransferData/getTransferData.utils.ts +++ b/packages/sdk/src/getTransferData/getTransferData.utils.ts @@ -1,5 +1,5 @@ import { CallType, SubstrateQueryConfig } from '@moonbeam-network/xcm-builder'; -import { AssetConfig, FeeAssetConfig } from '@moonbeam-network/xcm-config'; +import { AssetConfig } from '@moonbeam-network/xcm-config'; import { Asset } from '@moonbeam-network/xcm-types'; import { toBigInt } from '@moonbeam-network/xcm-utils'; import { BalanceContractInterface, createContract } from '../contract'; @@ -8,7 +8,7 @@ import { EvmSigner } from '../sdk.interfaces'; export interface GetFeeBalancesParams { address: string; - config: AssetConfig | FeeAssetConfig; + config: AssetConfig; evmSigner?: EvmSigner; polkadot: PolkadotService; asset?: Asset;