Skip to content

Commit

Permalink
fix: use consistent name for address
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Sep 23, 2022
1 parent 9fda1ac commit 72ff623
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Props = {
env?: Environment;
clientId?: string;
chainId?: number;
collectionAddress?: string;
contractAddress?: string;
walletAddress?: string;
enabled?: boolean;
};
Expand All @@ -20,17 +20,17 @@ export const useNftTokensByCollection = ({
env = Environment.PROD,
clientId = 'none',
chainId,
collectionAddress,
contractAddress,
enabled = true,
}: Props) => {
const url = `${FLAIR_DATA_QUERY_BACKEND[env]}/v1/data-query/nft-tokens/by-collection`;

const params = useMemo(() => {
return {
chainId,
collectionAddress,
contractAddress,
};
}, [chainId, collectionAddress]);
}, [chainId, contractAddress]);

const headers = useMemo(() => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Props = {
env?: Environment;
clientId?: string;
chainId?: number;
collectionAddress?: string;
contractAddress?: string;
walletAddress?: string;
enabled?: boolean;
};
Expand All @@ -20,7 +20,7 @@ export const useNftTokensByWallet = ({
env = Environment.PROD,
clientId = 'none',
chainId,
collectionAddress,
contractAddress,
walletAddress,
enabled = true,
}: Props) => {
Expand All @@ -29,10 +29,10 @@ export const useNftTokensByWallet = ({
const params = useMemo(() => {
return {
chainId,
collectionAddress,
contractAddress,
walletAddress,
};
}, [chainId, collectionAddress, walletAddress]);
}, [chainId, contractAddress, walletAddress]);

const headers = useMemo(() => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const StreamProvider = ({
} = useNftTokensByWallet({
env,
chainId,
collectionAddress: ticketTokenAddress,
contractAddress: ticketTokenAddress,
walletAddress: finalWalletAddress,
enabled: Boolean(finalWalletAddress && ticketTokenAddress),
});
Expand Down

0 comments on commit 72ff623

Please sign in to comment.