From 5ee3c50a51e980ce0fa499c0b27581ee12162f86 Mon Sep 17 00:00:00 2001 From: npty Date: Wed, 25 Sep 2024 14:16:17 +0700 Subject: [PATCH] fix: cannot find remote interchain token --- apps/maestro/src/services/interchainToken/hooks.ts | 2 +- .../maestro/src/ui/pages/InterchainTokenDetailsPage/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/maestro/src/services/interchainToken/hooks.ts b/apps/maestro/src/services/interchainToken/hooks.ts index 0fb09086d..0bae65226 100644 --- a/apps/maestro/src/services/interchainToken/hooks.ts +++ b/apps/maestro/src/services/interchainToken/hooks.ts @@ -6,7 +6,7 @@ import { trpc } from "~/lib/trpc"; export function useInterchainTokenDetailsQuery(input: { chainId?: number; - tokenAddress?: `0x${string}`; + tokenAddress?: `0x${string}` | null; }) { return trpc.interchainToken.getInterchainTokenDetails.useQuery( { diff --git a/apps/maestro/src/ui/pages/InterchainTokenDetailsPage/index.tsx b/apps/maestro/src/ui/pages/InterchainTokenDetailsPage/index.tsx index 9f20a4ea0..08f203a57 100644 --- a/apps/maestro/src/ui/pages/InterchainTokenDetailsPage/index.tsx +++ b/apps/maestro/src/ui/pages/InterchainTokenDetailsPage/index.tsx @@ -31,8 +31,8 @@ const InterchainTokensPage: FC = () => { }); const { data: interchainTokenDetails } = useInterchainTokenDetailsQuery({ - chainId: routeChain?.id, - tokenAddress, + chainId: interchainToken?.chainId, + tokenAddress: interchainToken?.tokenAddress, }); const { data: tokenDetails } = useERC20TokenDetailsQuery({