This is an example in the course :D Link: https://courses.zinstitute.net/courses/web3frontend
- Deploy
MyToken
contract. - Deploy
ChatRoomV2
contract withMyToken
contract address as the constructor parameter. - Mint free tokens from
MyToken
contract. - Approve
ChatRoomV2
contract to spend myMyToken
tokens. - Execute
newAnnouncementMyToken()
to set an announcement withMyToken
tokens as the payment. - Check the
announcement
variable to see if the announcement is successful.