From 4ff431098a625e9a1309ea7e3556e0d5c33868d0 Mon Sep 17 00:00:00 2001 From: Lulox Date: Thu, 19 Sep 2024 21:56:25 -0300 Subject: [PATCH] Added a button for edit profile, still unused --- packages/foundry/contracts/Marketplace.sol | 3 +++ packages/nextjs/app/myProfile/_components/MyProfile.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/packages/foundry/contracts/Marketplace.sol b/packages/foundry/contracts/Marketplace.sol index 3973e50..f5c3228 100644 --- a/packages/foundry/contracts/Marketplace.sol +++ b/packages/foundry/contracts/Marketplace.sol @@ -242,6 +242,8 @@ contract Marketplace is ReentrancyGuard, Ownable { IERC20(USDC).transfer(nftSeller, sellerAmount); IERC20(USDC).transfer(royaltyReceiver, royaltyRecAmount); } else { + // WARNING: THIS IS A PLACEHOLDER, LEAVING IT LIKE THIS IS A VULNERABILITY + // Implement AggregatorV3Interface to convert the USD value to the native token equivalent value } @@ -274,6 +276,7 @@ contract Marketplace is ReentrancyGuard, Ownable { require(!listing.isAuction, "You cannot remove an active auction"); delete listings[listingId]; + // Add an event for when a listing is removed } // ============ UTILITIES ============== diff --git a/packages/nextjs/app/myProfile/_components/MyProfile.tsx b/packages/nextjs/app/myProfile/_components/MyProfile.tsx index 1066ed3..7e2f104 100644 --- a/packages/nextjs/app/myProfile/_components/MyProfile.tsx +++ b/packages/nextjs/app/myProfile/_components/MyProfile.tsx @@ -85,6 +85,9 @@ export const MyProfile: NextPage = () => {
{/* User Profile Section */}
+ {/* Edit Profile Button */} + + {/* Profile Picture */}