venerdì 11 marzo 2016

BASIC ETHEREUM SOLIDITY CONTRACT WITH KILL FUNCTION

contract HelloSystem {

    address owner;

    // Constructor
    function HelloSystem(){
        owner = msg.sender;
    }

    function remove() {
        if (msg.sender == owner){
            suicide(owner);
        }
    }

}

Nessun commento:

Posta un commento