Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
dohaki committed Sep 30, 2024
1 parent a93c64b commit 70f5bad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/example/lib/hooks/useInputTokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function useInputTokens(originChainId: number | undefined) {
const { data: chains, ...rest } = useQuery({
queryKey,
queryFn: () => {
return sdk.utils.getSupportedChains({ chainId: originChainId });
return sdk.getSupportedChains({ chainId: originChainId });
},
enabled: Boolean(originChainId),
refetchInterval: Infinity,
Expand Down
2 changes: 1 addition & 1 deletion apps/example/lib/hooks/useOutputTokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function useOutputTokens(destinationChainId: number | undefined) {
const { data: chains, ...rest } = useQuery({
queryKey,
queryFn: () => {
return sdk.utils.getSupportedChains({ chainId: destinationChainId });
return sdk.getSupportedChains({ chainId: destinationChainId });
},
enabled: Boolean(destinationChainId),
refetchInterval: Infinity,
Expand Down
2 changes: 1 addition & 1 deletion apps/example/lib/hooks/useSupportedAcrossChains.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function useSupportedAcrossChains(params: useAcrossChainsParams) {
const { data: supportedChains, ...rest } = useQuery({
queryKey,
queryFn: () => {
return sdk.utils.getSupportedChains(params);
return sdk.getSupportedChains(params);
},
enabled: true,
refetchInterval: Infinity,
Expand Down
2 changes: 1 addition & 1 deletion apps/example/scripts/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ async function main() {

// do call to find info for displaying input/output tokens and destination chains
// 1. populate UI
const chainDetails = await client.utils.getSupportedChains({});
const chainDetails = await client.getSupportedChains({});

// 2. choose origin chain, optimism in this example
const originChain = optimism.id;
Expand Down

0 comments on commit 70f5bad

Please sign in to comment.