Build on Solana
CPI Hands on
In this task, just like what we have done with transfer, implement burn functionality as well so that users of the tokens can burn the desired amount. Therefore, just like the transfer function, this burn will also take the amount as a parameter and invoke the burn function from anchor_spl. You can checkout burn function from this link is here.
Once the contract is ready, in order to be sure it is working properly, you will need to add burn to our test file as well. Since the remaining part is not going to change, you can just add the new burn function to the end.
Frontend Integration Task
In this task, you will use the frontend template as a reference to interact with all the functionalities that we have implemented: