pragma cashscript ^0.9.0;
// Burner - where tokens enter the void
//
// vi: ft=solidity
contract Burner() {
function burn() {
require(tx.outputs.length == 1);
require(tx.outputs[0].tokenCategory == 0x);
}
}
The purpose of the contract is to have a simple way to burn tokens by sendinging them to an address.
This contract enforces this by requiring that spends from it must contain one output and this output must not contain tokens.
I hacked together a simple frontendhere : https://tokenburner.cash