You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
538 B

# Register With Events
In order to facilitate the use of your Smart Contract, you will add events.
Events in solidity are used to facilitate the retrieval of information.
### Instructions
Write solidity smart contract `RegisterWithEvents` that provides:
- The functions `addDocument()` and `getDate()` as specified in the prior exercise.
- An event `event DocumentAdded(bytes32, uint)` that triggers when a new document is added to the register
### Notions
- [Events](https://docs.soliditylang.org/en/v0.8.4/contracts.html#events)