Skip to content

Commit 045ca3a

Browse files
authored
Ethereum connection import/export validation (#859)
* Set Ethereum connection under maintenance and trigger validation * testnet release 2.14.28
1 parent 86f65c2 commit 045ca3a

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "app",
3-
"version": "2.14.27",
3+
"version": "2.14.28",
44
"private": true,
55
"scripts": {
66
"bump": "bump patch --tag --commit 'testnet release '",

app/src/views/BalancePage/Export/Select.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,15 @@ export default defineComponent({
7272
};
7373

7474
const validationErrorRef = computed(() => {
75+
const chain = useChains().get(exportStore.state.draft.network);
76+
if (chain.chainConfig.underMaintenance) {
77+
return `${chain.displayName} Connection Under Maintenance`;
78+
}
79+
7580
if (!exportTokenRef.value) {
7681
return "Select Token";
7782
}
83+
7884
if (
7985
feeAssetBalanceRef.value &&
8086
feeAmountRef.value &&
@@ -114,11 +120,6 @@ export default defineComponent({
114120
return "Amount Too Large";
115121
}
116122

117-
const chain = useChains().get(exportStore.state.draft.network);
118-
if (chain.chainConfig.underMaintenance) {
119-
return `${chain.displayName} Connection Under Maintenance`;
120-
}
121-
122123
return null;
123124
});
124125

core/src/config/chains/ethereum/ethereum-mainnet.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export const ETHEREUM_MAINNET: EthChainConfig = {
88
blockExplorerUrl: "https://etherscan.io",
99
blockExplorerApiUrl: "https://api.etherscan.io",
1010
nativeAssetSymbol: "eth",
11+
underMaintenance: true,
1112
};

0 commit comments

Comments
 (0)