Skip to content

Instantly share code, notes, and snippets.



Last active Oct 27, 2017
What would you like to do?
pragma solidity ^0.4.11;
contract HelloWorld {
uint public balance;
address public owner;
function HelloWorld() public {
owner = msg.sender;
balance = 0;
function update() public payable isOwner() {
balance = msg.value;
modifier isOwner() {
require(msg.sender == owner);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.