From eaa04a7fb0c905002e96206a7f75e2521eb951f9 Mon Sep 17 00:00:00 2001 From: nicolasito1411 <60229704+Marchand-Nicolas@users.noreply.github.com> Date: Sat, 29 Jun 2024 21:03:47 +0200 Subject: [PATCH] updating libs --- components/UI/modalProfilePic.tsx | 31 ++++++++++++++++++------------- package.json | 4 ++-- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/components/UI/modalProfilePic.tsx b/components/UI/modalProfilePic.tsx index 91db21b7..f340ec7e 100644 --- a/components/UI/modalProfilePic.tsx +++ b/components/UI/modalProfilePic.tsx @@ -49,20 +49,25 @@ const ModalProfilePic: FunctionComponent = ({ const confirm = () => { if (!account) return; - account.execute(callData).then((tx) => { - addTransaction({ - timestamp: Date.now(), - subtext: `For identity ${tokenId}`, - type: NotificationType.TRANSACTION, - data: { - type: TransactionType.SET_PFP, - hash: tx.transaction_hash, - status: "pending", - }, + account + .execute(callData) + .then((tx) => { + addTransaction({ + timestamp: Date.now(), + subtext: `For identity ${tokenId}`, + type: NotificationType.TRANSACTION, + data: { + type: TransactionType.SET_PFP, + hash: tx.transaction_hash, + status: "pending", + }, + }); + setPfpTxHash(tx.transaction_hash); + closeModal(false); + }) + .catch((error) => { + console.error("Transaction execution failed", error); }); - setPfpTxHash(tx.transaction_hash); - closeModal(false); - }); }; return ( diff --git a/package.json b/package.json index e70f9e0c..999e6ae9 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,8 @@ "@solana/wallet-adapter-react-ui": "^0.9.34", "@solana/wallet-adapter-wallets": "^0.19.23", "@solana/web3.js": "^1.87.6", - "@starknet-react/chains": "^0.1.6", - "@starknet-react/core": "^2.8.0", + "@starknet-react/chains": "^0.1.7", + "@starknet-react/core": "^2.8.2", "@vercel/analytics": "^0.1.5", "@walnuthq/sdk": "^1.1.10", "axios": "^1.4.0",