mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Parentheses.
This commit is contained in:
parent
d58a4e08da
commit
e9458be7bd
@ -268,7 +268,7 @@ activate themselves.
|
|||||||
|
|
||||||
// Revert the call if the bidding
|
// Revert the call if the bidding
|
||||||
// period is over.
|
// period is over.
|
||||||
require(now <= auctionStart + biddingTime);
|
require(now <= (auctionStart + biddingTime));
|
||||||
|
|
||||||
// If the bid is not higher, send the
|
// If the bid is not higher, send the
|
||||||
// money back.
|
// money back.
|
||||||
@ -543,7 +543,7 @@ Safe Remote Purchase
|
|||||||
function Purchase() payable {
|
function Purchase() payable {
|
||||||
seller = msg.sender;
|
seller = msg.sender;
|
||||||
value = msg.value / 2;
|
value = msg.value / 2;
|
||||||
require(2 * value == msg.value);
|
require((2 * value) == msg.value);
|
||||||
}
|
}
|
||||||
|
|
||||||
modifier condition(bool _condition) {
|
modifier condition(bool _condition) {
|
||||||
@ -588,7 +588,7 @@ Safe Remote Purchase
|
|||||||
/// is called.
|
/// is called.
|
||||||
function confirmPurchase()
|
function confirmPurchase()
|
||||||
inState(State.Created)
|
inState(State.Created)
|
||||||
condition(msg.value == 2 * value)
|
condition(msg.value == (2 * value))
|
||||||
payable
|
payable
|
||||||
{
|
{
|
||||||
purchaseConfirmed();
|
purchaseConfirmed();
|
||||||
|
Loading…
Reference in New Issue
Block a user