mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update documentation.
This commit is contained in:
parent
30d9961efb
commit
cea46acef7
@ -232,7 +232,7 @@ activate themselves.
|
|||||||
// absolute unix timestamps (seconds since 1970-01-01)
|
// absolute unix timestamps (seconds since 1970-01-01)
|
||||||
// or time periods in seconds.
|
// or time periods in seconds.
|
||||||
address public beneficiary;
|
address public beneficiary;
|
||||||
uint public auctionEnd;
|
uint public auctionEndTime;
|
||||||
|
|
||||||
// Current state of the auction.
|
// Current state of the auction.
|
||||||
address public highestBidder;
|
address public highestBidder;
|
||||||
@ -261,7 +261,7 @@ activate themselves.
|
|||||||
address _beneficiary
|
address _beneficiary
|
||||||
) public {
|
) public {
|
||||||
beneficiary = _beneficiary;
|
beneficiary = _beneficiary;
|
||||||
auctionEnd = now + _biddingTime;
|
auctionEndTime = now + _biddingTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Bid on the auction with the value sent
|
/// Bid on the auction with the value sent
|
||||||
@ -278,7 +278,7 @@ activate themselves.
|
|||||||
// Revert the call if the bidding
|
// Revert the call if the bidding
|
||||||
// period is over.
|
// period is over.
|
||||||
require(
|
require(
|
||||||
now <= auctionEnd,
|
now <= auctionEndTime,
|
||||||
"Auction already ended."
|
"Auction already ended."
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -337,7 +337,7 @@ activate themselves.
|
|||||||
// external contracts.
|
// external contracts.
|
||||||
|
|
||||||
// 1. Conditions
|
// 1. Conditions
|
||||||
require(now >= auctionEnd, "Auction not yet ended.");
|
require(now >= auctionEndTime, "Auction not yet ended.");
|
||||||
require(!ended, "auctionEnd has already been called.");
|
require(!ended, "auctionEnd has already been called.");
|
||||||
|
|
||||||
// 2. Effects
|
// 2. Effects
|
||||||
|
Loading…
Reference in New Issue
Block a user