Skip to content

Commit

Permalink
Set Ethereum connection under maintenance and trigger validation
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoos committed Dec 15, 2023
1 parent 86f65c2 commit 2e95574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions app/src/views/BalancePage/Export/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down Expand Up @@ -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;
});

Expand Down
1 change: 1 addition & 0 deletions core/src/config/chains/ethereum/ethereum-mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ export const ETHEREUM_MAINNET: EthChainConfig = {
blockExplorerUrl: "https://etherscan.io",
blockExplorerApiUrl: "https://api.etherscan.io",
nativeAssetSymbol: "eth",
underMaintenance: true,
};

0 comments on commit 2e95574

Please sign in to comment.