0

but as far as i know alike ECR20, ECR223 token cant be send to an address without having tokenFallback() do we have another way around to burn the ERC223 tokens?

1

Yes, you can burn the token by deleting the allocated token to the particular address and subtracting the equal value from the total supply.

 function burn(uint256 _value) public {
require(_value <= balances[msg.sender]);
// no need to require value <= totalSupply, since that would imply the
// sender's balance is greater than the totalSupply, which *should* be an assertion failure

address burner = msg.sender;
balances[burner] = balances[burner].sub(_value);
totalSupply_ = totalSupply_.sub(_value);
Burn(burner, _value);
}
| improve this answer | |

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.