mirror of https://github.com/01-edu/public.git
4fa5c876a7 | ||
---|---|---|
.. | ||
README.md |
README.md
Eventful Token
Instructions
- Create a Smart Conctract named
EventfulToken
- Like MinimalToken, its constructor takes as parameter an amount that is given initially to the deployer.
- Create an event
Transfer(address indexed , address indexed, uint)
that returns the address from which the funds where transferred (the variable should be calledsender
), the address of therecipient
and theamount
of the transfer. Trigger the event within the transfer function. N - Create an event
Minting(address, amount)
that returns theaddress
recipient
to which token were minted and theamount
of tokens created. Trigger the event when appropriate.
Hint
The indexed
keyword will facilitate the filtering by this field of the event in later exercises.