Skip to content

Commit

Permalink
Update ELEN_E6883_NFT.sol
Browse files Browse the repository at this point in the history
*** VK added code k3jph#1***
  • Loading branch information
vaibhaws1 authored May 6, 2023
1 parent 2d822eb commit afd22bf
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions contracts/ELEN_E6883_NFT.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,24 @@ contract ELEN_E6883_NFT is ERC721URIStorage, Ownable {
uint public constant MAX_PER_MINT = 5;

string public baseTokenURI;

//*** VK added code #1***
struct Sale {
address seller;
uint256 tokenId;
uint256 price;
bool active;
}

address public _contractOwner;
uint256 public _price;
IERC721 public nftContract;
mapping (uint256 => Sale) public tokenIdToSale;
event SaleCreated(address seller, uint256 tokenId, uint256 price);
event SaleCancelled(address seller, uint256 tokenId);
event SaleSuccessful(address buyer, uint256 tokenId, uint256 price);
event nftdetails(address nftAddress, uint256 tokenId);
//*** VK end code #1 ***

constructor(string memory baseURI, string memory name, string memory symbol) ERC721(name, symbol) {
setBaseURI(baseURI);
Expand Down

0 comments on commit afd22bf

Please sign in to comment.