Last active
November 14, 2017 01:25
-
-
Save pabloruiz55/7e06fe5b3cbfd21db45c0015c0b191c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The auctioneer has to call this function while supplying the 1th to start the auction | |
function startAuction() public payable{ | |
require(!auctionStarted); | |
require(msg.sender == auctioneer); | |
require(msg.value == (1 * 10 ** 18)); | |
auctionedEth = msg.value; | |
auctionStarted = true; | |
auctionEndTime = now + (3600 * 24 * 7); // Ends 7 days after the deployment of the contract | |
E_AuctionStarted(msg.sender,now, auctionEndTime); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment