From dc14386512d000c8841e2983309cb922d7b276aa Mon Sep 17 00:00:00 2001 From: npty <78221556+npty@users.noreply.github.com> Date: Wed, 25 Sep 2024 21:01:09 +0700 Subject: [PATCH] fix: cannot find remote interchain token (#458) --- 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 0fb09086..0bae6522 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 9f20a4ea..08f203a5 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({