Skip to content

Commit

Permalink
Merge pull request #25 from SIDHARTH20K4/next
Browse files Browse the repository at this point in the history
getting the events from the events array
  • Loading branch information
SIDHARTH20K4 authored Feb 1, 2024
2 parents 0777d91 + 9f9b61f commit e7d13ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web3/contracts/Nft.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ contract Nft is ERC721,Ownable {
events.push(newEvent);
}

function getEvent() public view returns (Event[] memory) {
return events;
}

function endEvents() private {
uint256 i = 0;
while (i < events.length) {
Expand Down

0 comments on commit e7d13ff

Please sign in to comment.