diff --git a/web3/contracts/Nft.sol b/web3/contracts/Nft.sol index 8d14e7e..b795255 100644 --- a/web3/contracts/Nft.sol +++ b/web3/contracts/Nft.sol @@ -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) {