Skip to content

Instantly share code, notes, and snippets.

View granawkins's full-sized avatar

Grant granawkins

  • 14:37 (UTC +07:00)
View GitHub Profile
@granawkins
granawkins / Destroyable.sol
Last active May 13, 2020 03:54
Practice smart contract for IvanOnTech Ethereum Programming 101 Course. Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime.
import "./Ownable.sol";
pragma solidity 0.5.12;
contract Destroyable is Ownable{
function close() public onlyOwner{ //onlyOwner is custom modifier
selfdestruct(msg.sender); // `owner` is the owners address
}
}