From b0edd52688449c9c83c0e006af3a67683aa71726 Mon Sep 17 00:00:00 2001 From: Akshit Choudhary Date: Sun, 21 May 2023 17:30:38 +0530 Subject: [PATCH] Fix typo in constructor assignment This commit fixes a typo in the constructor of the NFT marketplace contract. The original code used '==' instead of '=', which resulted in an incorrect comparison and failed to assign the correct value to the 'owner' variable. The updated code uses the correct assignment operator, which ensures that the 'owner' variable is properly initialized with the address of the contract creator. --- blur-clone/contracts/NFTMarketplace.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blur-clone/contracts/NFTMarketplace.sol b/blur-clone/contracts/NFTMarketplace.sol index 05c8b1022..a705838dc 100644 --- a/blur-clone/contracts/NFTMarketplace.sol +++ b/blur-clone/contracts/NFTMarketplace.sol @@ -14,7 +14,7 @@ contract NFTMarketplace is ReentrancyGuard { address public owner; constructor() { - owner == msg.sender; + owner = msg.sender; } struct MarketItem {