Skip to content

Commit

Permalink
Ethereum connection import/export validation (#859)
Browse files Browse the repository at this point in the history
* Set Ethereum connection under maintenance and trigger validation

* testnet release 2.14.28
  • Loading branch information
pgoos authored Dec 15, 2023
1 parent 86f65c2 commit 045ca3a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "app",
"version": "2.14.27",
"version": "2.14.28",
"private": true,
"scripts": {
"bump": "bump patch --tag --commit 'testnet release '",
Expand Down
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,
};

1 comment on commit 045ca3a

@vercel
Copy link

@vercel vercel bot commented on 045ca3a Dec 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sifchain-ui – ./

sifchain-ui-sifchain.vercel.app
dex.sifchain.finance
sifchain-ui-git-master-sifchain.vercel.app

Please sign in to comment.