Skip to content

Instantly share code, notes, and snippets.

@julianduque julianduque/HelloWorld.sol
Last active Oct 27, 2017

Embed
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.