Skip to content

Instantly share code, notes, and snippets.

@brynbellomy
Last active June 29, 2017 18:08
Show Gist options
  • Select an option

  • Save brynbellomy/8071776fc8daa627859dcee4630dac51 to your computer and use it in GitHub Desktop.

Select an option

Save brynbellomy/8071776fc8daa627859dcee4630dac51 to your computer and use it in GitHub Desktop.
medium-auction-contract-2.sol
function Auction(address _owner, uint _bidIncrement, uint _startBlock, uint _endBlock, string _ipfsHash) {
if (_startBlock >= _endBlock) throw;
if (_startBlock < block.number) throw;
if (_owner == 0) throw;
owner = _owner;
bidIncrement = _bidIncrement;
startBlock = _startBlock;
endBlock = _endBlock;
ipfsHash = _ipfsHash;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment