diff --git a/lib/sanbase/smart_contracts/sanr_nft.ex b/lib/sanbase/smart_contracts/sanr_nft.ex index 9b6cdff25f..ada0412c70 100644 --- a/lib/sanbase/smart_contracts/sanr_nft.ex +++ b/lib/sanbase/smart_contracts/sanr_nft.ex @@ -70,10 +70,7 @@ defmodule Sanbase.SmartContracts.SanrNFT do defp do_get_all_nft_expiration_dates() do req = - Req.new( - base_url: - "https://sanrnew-api.production.internal.santiment.net/api/v1/SanbaseSubscriptionNFTCollection/all" - ) + Req.new(base_url: "https://api.sanr.app/v1/SanbaseSubscriptionNFTCollection/all") result = Req.get(req, []) diff --git a/test/sanbase/billing/sanr_nft_subscription_test.exs b/test/sanbase/billing/sanr_nft_subscription_test.exs index 9c1e73fd80..661a789611 100644 --- a/test/sanbase/billing/sanr_nft_subscription_test.exs +++ b/test/sanbase/billing/sanr_nft_subscription_test.exs @@ -35,7 +35,7 @@ defmodule Sanbase.Billing.SanrNFTSubscriptionTest do "https://zksync-mainnet.g.alchemy.com" -> Sanbase.SanrNFTMocks.get_owners_for_contract_mock(address) - "https://sanrnew-api.production.internal.santiment.net/api/v1/SanbaseSubscriptionNFTCollection/all" -> + "https://api.sanr.app/v1/SanbaseSubscriptionNFTCollection/all" -> Sanbase.SanrNFTMocks.sanr_nft_collections_mock(start_date, end_date) end end diff --git a/test/sanbase_web/graphql/billing/sanr_nft_subscription_api_test.exs b/test/sanbase_web/graphql/billing/sanr_nft_subscription_api_test.exs index dce002ee02..9e995664eb 100644 --- a/test/sanbase_web/graphql/billing/sanr_nft_subscription_api_test.exs +++ b/test/sanbase_web/graphql/billing/sanr_nft_subscription_api_test.exs @@ -37,7 +37,7 @@ defmodule Sanbase.Billing.SanrNftSubscriptionsApiTest do "https://zksync-mainnet.g.alchemy.com" -> Sanbase.SanrNFTMocks.get_owners_for_contract_mock(context.address) - "https://sanrnew-api.production.internal.santiment.net/api/v1/SanbaseSubscriptionNFTCollection/all" -> + "https://api.sanr.app/v1/SanbaseSubscriptionNFTCollection/all" -> Sanbase.SanrNFTMocks.sanr_nft_collections_mock(context.start_date, context.end_date) end end @@ -99,7 +99,7 @@ defmodule Sanbase.Billing.SanrNftSubscriptionsApiTest do "https://zksync-mainnet.g.alchemy.com" -> Sanbase.SanrNFTMocks.get_owners_for_contract_mock(context.address) - "https://sanrnew-api.production.internal.santiment.net/api/v1/SanbaseSubscriptionNFTCollection/all" -> + "https://api.sanr.app/v1/SanbaseSubscriptionNFTCollection/all" -> Sanbase.SanrNFTMocks.sanr_nft_collections_mock(context.start_date, context.end_date) end end