diff --git a/packages/website/components/Button/AddTokensButton.tsx b/packages/website/components/Button/AddTokensButton.tsx index 436cec89a6e..d6daabf957d 100644 --- a/packages/website/components/Button/AddTokensButton.tsx +++ b/packages/website/components/Button/AddTokensButton.tsx @@ -1,8 +1,6 @@ import { - SEPOLIA_ADD_ETHEREUM_CHAIN, SEPOLIA_ADD_TOKENS, SEPOLIA_CONFIG, - JOLNIR_ADD_ETHEREUM_CHAIN, JOLNIR_ADD_TOKENS, JOLNIR_CONFIG, } from "../../domain/chain"; @@ -17,11 +15,7 @@ type ConnectButtonProps = { const chainMap = { Sepolia: SEPOLIA_CONFIG.chainId.hex, -}; - -const configMap = { - Sepolia: SEPOLIA_ADD_ETHEREUM_CHAIN, - Jolnir: JOLNIR_ADD_ETHEREUM_CHAIN, + Jolnir: JOLNIR_CONFIG.chainId.hex, }; const tokenConfigMap = { diff --git a/packages/website/components/Button/ConnectToMetamaskButton.tsx b/packages/website/components/Button/ConnectToMetamaskButton.tsx index 2e55073939e..589385a22b7 100644 --- a/packages/website/components/Button/ConnectToMetamaskButton.tsx +++ b/packages/website/components/Button/ConnectToMetamaskButton.tsx @@ -1,7 +1,6 @@ import { SEPOLIA_CONFIG, TAIKO_CONFIG, - TAIKO_ADD_ETHEREUM_CHAIN, } from "../../domain/chain"; import { switchOrAddChain } from "../../utils/switchOrAddChain"; @@ -31,12 +30,6 @@ async function ConnectToMetamask(network: ConnectButtonProps["network"]) { return; } - let params: any; - if (network === SEPOLIA_CONFIG.names.shortName) { - params = [{ chainId: chainMap[network] }]; - } else { - params = [TAIKO_ADD_ETHEREUM_CHAIN]; - } try { await switchOrAddChain(network); } catch (error) {