From 04bd37cba3d7674973124699654bdabce0e1ce97 Mon Sep 17 00:00:00 2001 From: Bobo Date: Thu, 2 Jan 2025 13:27:24 +0100 Subject: [PATCH] Disable deposit to zk when connected to L1 --- src/hooks/bridge/useLayerZeroBridge.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/hooks/bridge/useLayerZeroBridge.ts b/src/hooks/bridge/useLayerZeroBridge.ts index f6e76b1fa..58b1abbec 100644 --- a/src/hooks/bridge/useLayerZeroBridge.ts +++ b/src/hooks/bridge/useLayerZeroBridge.ts @@ -26,8 +26,6 @@ import { HistoryTxType, addLzHistories } from 'src/modules/account'; import { isHex } from '@polkadot/util'; export const useLayerZeroBridge = () => { - const { isAstar } = useNetworkInfo(); - const lzTokens = ref([]); const selectedToken = ref(LayerZeroTokens[0]); const importTokenAddress = ref(''); @@ -37,12 +35,8 @@ export const useLayerZeroBridge = () => { const isGasPayable = ref(undefined); const isLoadingGasPayable = ref(true); const errMsg = ref(''); - const fromChainName = ref( - isAstar.value ? LayerZeroNetworkName.AstarEvm : LayerZeroNetworkName.AstarZk - ); - const toChainName = ref( - isAstar.value ? LayerZeroNetworkName.AstarZk : LayerZeroNetworkName.AstarEvm - ); + const fromChainName = ref(LayerZeroNetworkName.AstarZk); + const toChainName = ref(LayerZeroNetworkName.AstarEvm); const isApproved = ref(false); const isApproving = ref(false); const isApproveMaxAmount = ref(false);