From 976d76a7f420fe4823ba15907a1452f2d1093162 Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Wed, 13 Sep 2023 20:27:43 +0200 Subject: [PATCH] fix: fixed metamask snap (#467) --- src/constants/chains.ts | 12 ------------ src/constants/wallets.ts | 2 +- src/types/interfaces/wallet.d.ts | 1 - 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/constants/chains.ts b/src/constants/chains.ts index 853ce831..cca4efd0 100644 --- a/src/constants/chains.ts +++ b/src/constants/chains.ts @@ -10,10 +10,6 @@ export const CHAINS: ChainInfos = { explorerName: 'Mintscan', chainId: ChainInfoID.Osmosis1, name: 'Osmosis', - bip44: { - coinType: 118, - }, - alternativeBIP44s: [{ coinType: 330 }], gasPrice: '0.025uosmo', bech32Config: Bech32Address.defaultBech32Config('osmo'), defaultCurrency: { @@ -36,10 +32,6 @@ export const CHAINS: ChainInfos = { explorerName: 'Mintscan', chainId: ChainInfoID.OsmosisDevnet, name: 'Osmosis Devnet', - bip44: { - coinType: 118, - }, - alternativeBIP44s: [{ coinType: 330 }], gasPrice: '0.025uosmo', bech32Config: Bech32Address.defaultBech32Config('osmo'), defaultCurrency: { @@ -62,10 +54,6 @@ export const CHAINS: ChainInfos = { explorerName: 'Mintscan', chainId: ChainInfoID.OsmosisTestnet, name: 'Osmosis Testnet', - bip44: { - coinType: 118, - }, - alternativeBIP44s: [{ coinType: 330 }], gasPrice: '0.025uosmo', bech32Config: Bech32Address.defaultBech32Config('osmo'), defaultCurrency: { diff --git a/src/constants/wallets.ts b/src/constants/wallets.ts index ea0cbe51..59add501 100644 --- a/src/constants/wallets.ts +++ b/src/constants/wallets.ts @@ -51,7 +51,7 @@ export const WALLETS: WalletInfos = { install: 'Install MetaMask', installURL: 'https://metamask.io/download/', imageURL: '/images/wallets/leap-snap.png', - supportedChains: [ChainInfoID.Osmosis1], + supportedChains: [ChainInfoID.Osmosis1, ChainInfoID.OsmosisDevnet], }, [WalletID.Station]: { name: 'Station Wallet', diff --git a/src/types/interfaces/wallet.d.ts b/src/types/interfaces/wallet.d.ts index e8c24dad..26c6c626 100644 --- a/src/types/interfaces/wallet.d.ts +++ b/src/types/interfaces/wallet.d.ts @@ -16,7 +16,6 @@ type Network = import('@delphi-labs/shuttle-react').Network interface ChainInfo extends Network { explorer: string explorerName: string - alternativeBIP44s: BIP44[] } interface WalletClient {