Skip to content

Commit

Permalink
updating libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchand-Nicolas committed Jun 29, 2024
1 parent df8466a commit eaa04a7
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 15 deletions.
31 changes: 18 additions & 13 deletions components/UI/modalProfilePic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,25 @@ const ModalProfilePic: FunctionComponent<ModalProfilePicProps> = ({

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 (
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit eaa04a7

Please sign in to comment.