feat: enable support for Arbitrum Sepolia in Opensea
This commit is contained in:
parent
00f412e4ac
commit
03cdb49c4c
|
@ -22,7 +22,7 @@ func getV2BaseURL(chainID walletCommon.ChainID) (string, error) {
|
|||
switch uint64(chainID) {
|
||||
case walletCommon.EthereumMainnet, walletCommon.ArbitrumMainnet, walletCommon.OptimismMainnet:
|
||||
return "https://api.opensea.io/v2", nil
|
||||
case walletCommon.EthereumGoerli, walletCommon.EthereumSepolia, walletCommon.ArbitrumGoerli, walletCommon.OptimismGoerli:
|
||||
case walletCommon.EthereumGoerli, walletCommon.EthereumSepolia, walletCommon.ArbitrumGoerli, walletCommon.ArbitrumSepolia, walletCommon.OptimismGoerli:
|
||||
return "https://testnets-api.opensea.io/v2", nil
|
||||
}
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@ const (
|
|||
ethereumGoerliString = "goerli"
|
||||
ethereumSepoliaString = "sepolia"
|
||||
arbitrumGoerliString = "arbitrum_goerli"
|
||||
arbitrumSepoliaString = "arbitrum_sepolia"
|
||||
optimismGoerliString = "optimism_goerli"
|
||||
)
|
||||
|
||||
|
@ -43,6 +44,8 @@ func chainIDToChainString(chainID walletCommon.ChainID) string {
|
|||
chainString = ethereumSepoliaString
|
||||
case walletCommon.ArbitrumGoerli:
|
||||
chainString = arbitrumGoerliString
|
||||
case walletCommon.ArbitrumSepolia:
|
||||
chainString = arbitrumSepoliaString
|
||||
case walletCommon.OptimismGoerli:
|
||||
chainString = optimismGoerliString
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue