From 710593fc304fe9b102a0388ec217525d6fd0ea09 Mon Sep 17 00:00:00 2001 From: pranavjadhav007 Date: Sat, 28 Jun 2025 16:01:19 +0530 Subject: [PATCH] Fix the NYX accout creation --- src/hooks/useWebViewHandler.ts | 6 ++---- src/screens/ApproveTransfer.tsx | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/hooks/useWebViewHandler.ts b/src/hooks/useWebViewHandler.ts index a9e4136..fdd352c 100644 --- a/src/hooks/useWebViewHandler.ts +++ b/src/hooks/useWebViewHandler.ts @@ -16,16 +16,14 @@ export const useWebViewHandler = () => { const { selectedNetwork } = useNetworks(); const { accounts, currentIndex } = useAccounts(); const { getAccountsData } = useAccountsData(); - - // Initialize accounts const { getOrCreateAccountsForChain } = useGetOrCreateAccounts(); + // Initialize accounts const handleGetOrCreateAccount = useCallback(async (chainId: string) => { try { - await getOrCreateAccountsForChain(chainId); + const accountsData = await getOrCreateAccountsForChain(chainId); - let accountsData = await getAccountsData(chainId); if (!accountsData || accountsData.length === 0) { window.Android?.onAccountError?.('Failed to create/retrieve account'); diff --git a/src/screens/ApproveTransfer.tsx b/src/screens/ApproveTransfer.tsx index 701cda6..f32e2a3 100644 --- a/src/screens/ApproveTransfer.tsx +++ b/src/screens/ApproveTransfer.tsx @@ -372,7 +372,7 @@ const ApproveTransfer = ({ route }: ApproveTransferProps) => { gas: cosmosGasLimit, }, sendMsg, - memo: MEMO, + memo: txMemo, }; break; default: