From 2e95574fdf4f55163ea214b6cebe6d93da70ab82 Mon Sep 17 00:00:00 2001 From: Piotr Gesicki Date: Fri, 15 Dec 2023 17:51:27 +0100 Subject: [PATCH] Set Ethereum connection under maintenance and trigger validation --- app/src/views/BalancePage/Export/Select.tsx | 11 ++++++----- core/src/config/chains/ethereum/ethereum-mainnet.ts | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/views/BalancePage/Export/Select.tsx b/app/src/views/BalancePage/Export/Select.tsx index eddf7e89d..a2ff93e3e 100644 --- a/app/src/views/BalancePage/Export/Select.tsx +++ b/app/src/views/BalancePage/Export/Select.tsx @@ -72,9 +72,15 @@ export default defineComponent({ }; const validationErrorRef = computed(() => { + const chain = useChains().get(exportStore.state.draft.network); + if (chain.chainConfig.underMaintenance) { + return `${chain.displayName} Connection Under Maintenance`; + } + if (!exportTokenRef.value) { return "Select Token"; } + if ( feeAssetBalanceRef.value && feeAmountRef.value && @@ -114,11 +120,6 @@ export default defineComponent({ return "Amount Too Large"; } - const chain = useChains().get(exportStore.state.draft.network); - if (chain.chainConfig.underMaintenance) { - return `${chain.displayName} Connection Under Maintenance`; - } - return null; }); diff --git a/core/src/config/chains/ethereum/ethereum-mainnet.ts b/core/src/config/chains/ethereum/ethereum-mainnet.ts index 890cfe0c1..aaf4e4477 100644 --- a/core/src/config/chains/ethereum/ethereum-mainnet.ts +++ b/core/src/config/chains/ethereum/ethereum-mainnet.ts @@ -8,4 +8,5 @@ export const ETHEREUM_MAINNET: EthChainConfig = { blockExplorerUrl: "https://etherscan.io", blockExplorerApiUrl: "https://api.etherscan.io", nativeAssetSymbol: "eth", + underMaintenance: true, };