Skip to content

Commit

Permalink
fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
bangjelkoski committed Dec 28, 2023
1 parent 5572a51 commit 7d16632
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions layer/wallet/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,18 +106,9 @@ export const validateMetamask = async (address: string) => {
}
}

export const switchToActiveMetamaskNetwork = async (
wallet: Wallet,
ethereumChainId: EthereumChainId
) => {
if (wallet !== Wallet.Metamask) {
return
}

const chainId = IS_MAINNET ? EthereumChainId.Mainnet : EthereumChainId.Goerli

export const switchToActiveMetamaskNetwork = async () => {
try {
await UtilsWallets.updateMetamaskNetwork(chainId)
await UtilsWallets.updateMetamaskNetwork(ETHEREUM_CHAIN_ID)
} catch (e) {
throw e
}
Expand Down

0 comments on commit 7d16632

Please sign in to comment.