From ea6528d24ea1ecc0e8abb799972042a7632c2d22 Mon Sep 17 00:00:00 2001 From: Mario J Maurello Date: Tue, 17 Dec 2024 13:16:47 +0100 Subject: [PATCH] fix in moonchain address --- packages/mrl/src/getTransferData/getMoonChainData.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/mrl/src/getTransferData/getMoonChainData.ts b/packages/mrl/src/getTransferData/getMoonChainData.ts index 9850cd78..68ade34a 100644 --- a/packages/mrl/src/getTransferData/getMoonChainData.ts +++ b/packages/mrl/src/getTransferData/getMoonChainData.ts @@ -24,11 +24,7 @@ export async function getMoonChainData({ const moonChain = getMoonChain(route.source.chain); const isDestinationMoonChain = moonChain.isEqual(route.destination.chain); - const isSourceEvmChain = EvmChain.is(route.source.chain); - let address = - isDestinationMoonChain || isSourceEvmChain - ? destinationAddress - : sourceAddress; + let address = isDestinationMoonChain ? destinationAddress : sourceAddress; const fee = await getDestinationFee({ address, @@ -44,7 +40,7 @@ export async function getMoonChainData({ ) { const addressToUse = EvmParachain.is(route.source.chain) ? evmToAddress(sourceAddress) - : address; + : sourceAddress; const { address20 } = getMultilocationDerivedAddresses({ address: addressToUse, paraId: route.source.chain.parachainId,