Skip to content

Commit

Permalink
format owner for all wallet formats
Browse files Browse the repository at this point in the history
  • Loading branch information
starknetdev committed Oct 7, 2024
1 parent f7a9072 commit d79b900
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ui/src/app/api/getGoldenTokens.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Network } from "@/app/hooks/useUIStore";
import { networkConfig } from "@/app/lib/networkConfig";
import { indexAddress } from "@/app/lib/utils";

export const getGoldenTokens = async (
owner: string,
Expand All @@ -12,7 +13,9 @@ export const getGoldenTokens = async (
) => {
let url = `${
networkConfig[network!].blastUrl
}/builder/getWalletNFTs?contractAddress=${goldenTokenAddress}&walletAddress=${owner}&pageSize=100`;
}/builder/getWalletNFTs?contractAddress=${goldenTokenAddress}&walletAddress=${indexAddress(
owner
).toLowerCase()}&pageSize=100`;

if (nextPageKey) {
url += `&pageKey=${nextPageKey}`;
Expand Down

0 comments on commit d79b900

Please sign in to comment.