From 544b840ede3c9cc0f2b7352b77e77050a0c15fee Mon Sep 17 00:00:00 2001 From: tomiir Date: Fri, 2 Feb 2024 03:55:16 -0600 Subject: [PATCH] fix: smart account creation on session requests (#442) --- .../src/components/SmartAccountCard.tsx | 19 +++++----- .../src/hooks/useSmartAccount.ts | 6 ++-- .../src/lib/SmartAccountLib.ts | 17 ++++++--- .../src/utils/EIP155RequestHandlerUtil.ts | 25 ++++++------- .../src/views/SessionProposalModal.tsx | 36 ++++++++++++------- 5 files changed, 61 insertions(+), 42 deletions(-) diff --git a/advanced/wallets/react-wallet-v2/src/components/SmartAccountCard.tsx b/advanced/wallets/react-wallet-v2/src/components/SmartAccountCard.tsx index d2e9a3c..dc71677 100644 --- a/advanced/wallets/react-wallet-v2/src/components/SmartAccountCard.tsx +++ b/advanced/wallets/react-wallet-v2/src/components/SmartAccountCard.tsx @@ -100,7 +100,6 @@ export default function SmartAccountCard({ > {activeChainId === chainId ? `✅` : `🔄`} - {smartAccountAddress ? ( <> @@ -109,15 +108,17 @@ export default function SmartAccountCard({ {smartAccountAddress} - + ) : null} + {isDeployed && smartAccountAddress ? ( + ) : ( <>