I am just playing around on testnet w/ code snippets ...

What am I doing wrong?

enter image description here


The variable _from doesn't exist in the burn() function. If you mean to burn the balance of the person (or contract) making the transaction, substitute msg.sender.

It works as is in the burnFrom function because you're passing in the address from as a parameter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.