fix: disable Goerli in the OpenSea client
This commit is contained in:
parent
9aef13f83e
commit
1924828f8d
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue