Skip to content

Commit

Permalink
feat(wallet): switch rarible client to eth sepolia
Browse files Browse the repository at this point in the history
  • Loading branch information
dlipicar committed May 2, 2024
1 parent 22bea87 commit df1c436
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/wallet/thirdparty/rarible/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions services/wallet/thirdparty/rarible/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit df1c436

Please sign in to comment.