mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 08:50:09 +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) {
|
||||
case walletCommon.EthereumMainnet, walletCommon.ArbitrumMainnet:
|
||||
return "https://api.rarible.org", nil
|
||||
case walletCommon.ArbitrumSepolia:
|
||||
case walletCommon.EthereumSepolia, walletCommon.ArbitrumSepolia:
|
||||
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 {
|
||||
chainID = walletCommon.EthereumMainnet
|
||||
} else {
|
||||
chainID = walletCommon.EthereumGoerli
|
||||
chainID = walletCommon.EthereumSepolia
|
||||
}
|
||||
case arbitrumString:
|
||||
if isMainnet {
|
||||
@ -46,7 +46,7 @@ func chainStringToChainID(chainString string, isMainnet bool) walletCommon.Chain
|
||||
func chainIDToChainString(chainID walletCommon.ChainID) string {
|
||||
chainString := ""
|
||||
switch uint64(chainID) {
|
||||
case walletCommon.EthereumMainnet, walletCommon.EthereumGoerli:
|
||||
case walletCommon.EthereumMainnet, walletCommon.EthereumSepolia:
|
||||
chainString = ethereumString
|
||||
case walletCommon.ArbitrumMainnet, walletCommon.ArbitrumSepolia:
|
||||
chainString = arbitrumString
|
||||
|
Loading…
x
Reference in New Issue
Block a user