mirror of
https://github.com/status-im/status-go.git
synced 2025-02-19 18:28:18 +00:00
feat(wallet)_: switch rarible client to eth sepolia
This commit is contained in:
parent
22bea87bb2
commit
8a0b7ddbb5
2
services/wallet/thirdparty/rarible/client.go
vendored
2
services/wallet/thirdparty/rarible/client.go
vendored
@ -44,7 +44,7 @@ func getBaseURL(chainID walletCommon.ChainID) (string, error) {
|
|||||||
switch uint64(chainID) {
|
switch uint64(chainID) {
|
||||||
case walletCommon.EthereumMainnet, walletCommon.ArbitrumMainnet:
|
case walletCommon.EthereumMainnet, walletCommon.ArbitrumMainnet:
|
||||||
return "https://api.rarible.org", nil
|
return "https://api.rarible.org", nil
|
||||||
case walletCommon.ArbitrumSepolia:
|
case walletCommon.EthereumSepolia, walletCommon.ArbitrumSepolia:
|
||||||
return "https://testnet-api.rarible.org", nil
|
return "https://testnet-api.rarible.org", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
services/wallet/thirdparty/rarible/types.go
vendored
4
services/wallet/thirdparty/rarible/types.go
vendored
@ -31,7 +31,7 @@ func chainStringToChainID(chainString string, isMainnet bool) walletCommon.Chain
|
|||||||
if isMainnet {
|
if isMainnet {
|
||||||
chainID = walletCommon.EthereumMainnet
|
chainID = walletCommon.EthereumMainnet
|
||||||
} else {
|
} else {
|
||||||
chainID = walletCommon.EthereumGoerli
|
chainID = walletCommon.EthereumSepolia
|
||||||
}
|
}
|
||||||
case arbitrumString:
|
case arbitrumString:
|
||||||
if isMainnet {
|
if isMainnet {
|
||||||
@ -46,7 +46,7 @@ func chainStringToChainID(chainString string, isMainnet bool) walletCommon.Chain
|
|||||||
func chainIDToChainString(chainID walletCommon.ChainID) string {
|
func chainIDToChainString(chainID walletCommon.ChainID) string {
|
||||||
chainString := ""
|
chainString := ""
|
||||||
switch uint64(chainID) {
|
switch uint64(chainID) {
|
||||||
case walletCommon.EthereumMainnet, walletCommon.EthereumGoerli:
|
case walletCommon.EthereumMainnet, walletCommon.EthereumSepolia:
|
||||||
chainString = ethereumString
|
chainString = ethereumString
|
||||||
case walletCommon.ArbitrumMainnet, walletCommon.ArbitrumSepolia:
|
case walletCommon.ArbitrumMainnet, walletCommon.ArbitrumSepolia:
|
||||||
chainString = arbitrumString
|
chainString = arbitrumString
|
||||||
|
Loading…
x
Reference in New Issue
Block a user