@moonbeam-network/mrl 1.0.0-dev.278 → 1.0.0-dev.279

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.mjs CHANGED
@@ -16984,7 +16984,6 @@ async function getBridgeChainData({
16984
16984
  sourceAddress,
16985
16985
  destinationAddress
16986
16986
  });
16987
- console.log("bridgeChain bridgeChainAddress", bridgeChainAddress);
16988
16987
  const fee = await getDestinationFee({
16989
16988
  address: bridgeChainAddress,
16990
16989
  asset: route.source.asset,
@@ -16993,21 +16992,18 @@ async function getBridgeChainData({
16993
16992
  feeAsset: route.mrl.bridgeChain.fee.asset,
16994
16993
  source: route.source.chain
16995
16994
  });
16996
- console.log("bridgeChain fee", fee);
16997
16995
  const balance = await getBalance({
16998
16996
  address: bridgeChainAddress,
16999
16997
  asset: bridgeChain.getChainAsset(route.mrl.bridgeChain.asset),
17000
16998
  builder: route.mrl.bridgeChain.balance,
17001
16999
  chain: bridgeChain
17002
17000
  });
17003
- console.log("bridgeChain balance", balance);
17004
17001
  const feeBalance = await getBalance({
17005
17002
  address: bridgeChainAddress,
17006
17003
  asset: bridgeChain.getChainAsset(route.mrl.bridgeChain.fee.asset),
17007
17004
  builder: route.mrl.bridgeChain.fee.balance,
17008
17005
  chain: bridgeChain
17009
17006
  });
17010
- console.log("bridgeChain feeBalance", feeBalance);
17011
17007
  return {
17012
17008
  address: bridgeChainAddress,
17013
17009
  balance,
@@ -17029,6 +17025,7 @@ function getBridgeChainAddress({
17029
17025
  let bridgeChainAddress = isDestinationBridgeChain ? destinationAddress : sourceAddress;
17030
17026
  if (Parachain.isExactly(bridgeChain) && isEthAddress2(bridgeChainAddress)) {
17031
17027
  bridgeChainAddress = evmToAddress(bridgeChainAddress);
17028
+ return bridgeChainAddress;
17032
17029
  }
17033
17030
  if (Parachain.is(source) && !isSourceBridgeChain) {
17034
17031
  const isSourceEvmSigner = EvmParachain.is(source) && source.isEvmSigner;