Skip to content

Commit

Permalink
Temporary disable Kusama network (sora-xor#1318)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Popov <[email protected]>
  • Loading branch information
stefashkaa and stefashkaa authored Feb 16, 2024
1 parent 7bdb0f3 commit ad1a42e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polkaswap-exchange-web",
"version": "1.29.0",
"version": "1.29.1",
"repository": {
"type": "git",
"url": "https://github.com/sora-xor/polkaswap-exchange-web.git"
Expand Down
7 changes: 6 additions & 1 deletion src/store/web3/getters.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { BridgeNetworkType } from '@sora-substrate/util/build/bridgeProxy/consts';
import { SubNetworkId } from '@sora-substrate/util/build/bridgeProxy/sub/consts';
import { defineGetters } from 'direct-vuex';

import { EVM_NETWORKS } from '@/consts/evm';
Expand Down Expand Up @@ -49,7 +50,11 @@ const getters = defineGetters<Web3State>()({
data.endpointUrls.push(address);
data.blockExplorerUrls.push(address);

const disabled = !state.supportedApps?.[BridgeNetworkType.Sub]?.includes(id as SubNetwork);
let disabled = !state.supportedApps?.[BridgeNetworkType.Sub]?.includes(id as SubNetwork);

if ([SubNetworkId.Kusama, SubNetworkId.KusamaSora].includes(id as SubNetworkId)) {
disabled = true; // Kusama issue: https://github.com/paritytech/polkadot-sdk/issues/3345
}

buffer[id] = {
disabled,
Expand Down

0 comments on commit ad1a42e

Please sign in to comment.