Skip to content

Commit

Permalink
Revert "fix: temp fix for chain id in api"
Browse files Browse the repository at this point in the history
This reverts commit cebd2e0.
  • Loading branch information
remiroyc committed Oct 31, 2024
1 parent cebd2e0 commit 938e7a3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/arkmarket/src/lib/getCollection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface CollectionApiResponse {
data: Collection;
}

const defaultChainId = "0x00000000000000000000000000000000000000000000000000534e5f4d41494e";
const defaultChainId = "0x534e5f4d41494e";

export default async function getCollection({
collectionAddress,
Expand Down
2 changes: 1 addition & 1 deletion apps/arkmarket/src/lib/getCollectionTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export async function getCollectionTokens({
queryParams.push(`direction=${sortDirection}`);
}

const url = `${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/collections/${collectionAddress}/0x00000000000000000000000000000000000000000000000000534e5f4d41494e/tokens?${queryParams.join("&")}`;
const url = `${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/collections/${collectionAddress}/0x534e5f4d41494e/tokens?${queryParams.join("&")}`;
const response = await fetch(url, {
headers: {
"Content-Type": "application/json",
Expand Down
2 changes: 1 addition & 1 deletion apps/arkmarket/src/lib/getToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async function getToken({
contractAddress,
tokenId,
}: GetCollectionTokenProps) {
const url = `${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/tokens/${contractAddress}/0x00000000000000000000000000000000000000000000000000534e5f4d41494e/${tokenId}`;
const url = `${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/tokens/${contractAddress}/0x534e5f4d41494e/${tokenId}`;
const response = await fetch(url);

if (!response.ok) {
Expand Down
2 changes: 1 addition & 1 deletion apps/arkmarket/src/lib/getTokenActivity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default async function getTokenActivity({
queryParams.push(`page=${page}`);
}

const url = `${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/tokens/${contractAddress}/0x00000000000000000000000000000000000000000000000000534e5f4d41494e/${tokenId}/activity?${queryParams.join("&")}`;
const url = `${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/tokens/${contractAddress}/0x534e5f4d41494e/${tokenId}/activity?${queryParams.join("&")}`;
const response = await fetch(url, {
headers: {
"Content-Type": "application/json",
Expand Down
2 changes: 1 addition & 1 deletion apps/arkmarket/src/lib/getTokenMarketData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default async function getTokenMarketData({
tokenId,
}: GetTokenMarketParams) {
const response = await fetch(
`${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/tokens/${contractAddress}/0x00000000000000000000000000000000000000000000000000534e5f4d41494e/${tokenId}/marketdata`,
`${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/tokens/${contractAddress}/0x534e5f4d41494e/${tokenId}/marketdata`,
);

if (!response.ok) {
Expand Down
2 changes: 1 addition & 1 deletion apps/arkmarket/src/lib/getTokenOffers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function getTokenOffers({
queryParams.push(`page=${page}`);
}

const url = `${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/tokens/${contractAddress}/0x00000000000000000000000000000000000000000000000000534e5f4d41494e/${tokenId}/offers?${queryParams.join("&")}`;
const url = `${env.NEXT_PUBLIC_MARKETPLACE_API_URL}/tokens/${contractAddress}/0x534e5f4d41494e/${tokenId}/offers?${queryParams.join("&")}`;
const response = await fetch(url, {
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 938e7a3

Please sign in to comment.