fix: disable Goerli in the OpenSea client

This commit is contained in:
Dario Gabriel Lipicar 2024-01-16 11:21:18 -03:00 committed by dlipicar
parent 9aef13f83e
commit 1924828f8d
2 changed files with 1 additions and 4 deletions

View File

@ -22,7 +22,7 @@ func getV2BaseURL(chainID walletCommon.ChainID) (string, error) {
switch uint64(chainID) { switch uint64(chainID) {
case walletCommon.EthereumMainnet, walletCommon.ArbitrumMainnet, walletCommon.OptimismMainnet: case walletCommon.EthereumMainnet, walletCommon.ArbitrumMainnet, walletCommon.OptimismMainnet:
return "https://api.opensea.io/v2", nil return "https://api.opensea.io/v2", nil
case walletCommon.EthereumGoerli, walletCommon.EthereumSepolia, walletCommon.ArbitrumSepolia, walletCommon.OptimismSepolia: case walletCommon.EthereumSepolia, walletCommon.ArbitrumSepolia, walletCommon.OptimismSepolia:
return "https://testnets-api.opensea.io/v2", nil return "https://testnets-api.opensea.io/v2", nil
} }

View File

@ -20,7 +20,6 @@ const (
ethereumMainnetString = "ethereum" ethereumMainnetString = "ethereum"
arbitrumMainnetString = "arbitrum" arbitrumMainnetString = "arbitrum"
optimismMainnetString = "optimism" optimismMainnetString = "optimism"
ethereumGoerliString = "goerli"
ethereumSepoliaString = "sepolia" ethereumSepoliaString = "sepolia"
arbitrumSepoliaString = "arbitrum_sepolia" arbitrumSepoliaString = "arbitrum_sepolia"
optimismSepoliaString = "optimism_sepolia" optimismSepoliaString = "optimism_sepolia"
@ -37,8 +36,6 @@ func chainIDToChainString(chainID walletCommon.ChainID) string {
chainString = arbitrumMainnetString chainString = arbitrumMainnetString
case walletCommon.OptimismMainnet: case walletCommon.OptimismMainnet:
chainString = optimismMainnetString chainString = optimismMainnetString
case walletCommon.EthereumGoerli:
chainString = ethereumGoerliString
case walletCommon.EthereumSepolia: case walletCommon.EthereumSepolia:
chainString = ethereumSepoliaString chainString = ethereumSepoliaString
case walletCommon.ArbitrumSepolia: case walletCommon.ArbitrumSepolia: