From 9c81dd29bbe6848afb056d407dfad3db8ed8ff32 Mon Sep 17 00:00:00 2001 From: Arkadiy Kukarkin Date: Wed, 21 Dec 2016 14:26:32 -0500 Subject: [PATCH] Fix example contracts --- contracts/examples/BadPushPayments.sol | 2 +- contracts/examples/GoodPullPayments.sol | 2 +- contracts/examples/PullPaymentBid.sol | 2 +- contracts/examples/StoppableBid.sol | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/examples/BadPushPayments.sol b/contracts/examples/BadPushPayments.sol index 2d85ffeec..7bc11c665 100644 --- a/contracts/examples/BadPushPayments.sol +++ b/contracts/examples/BadPushPayments.sol @@ -7,7 +7,7 @@ contract BadPushPayments { address highestBidder; uint highestBid; - function bid() { + function bid() payable { if (msg.value < highestBid) throw; if (highestBidder != 0) { diff --git a/contracts/examples/GoodPullPayments.sol b/contracts/examples/GoodPullPayments.sol index 1469eb57f..fc0cd986b 100644 --- a/contracts/examples/GoodPullPayments.sol +++ b/contracts/examples/GoodPullPayments.sol @@ -6,7 +6,7 @@ contract GoodPullPayments { uint highestBid; mapping(address => uint) refunds; - function bid() external { + function bid() external payable { if (msg.value < highestBid) throw; if (highestBidder != 0) { diff --git a/contracts/examples/PullPaymentBid.sol b/contracts/examples/PullPaymentBid.sol index ad4b612b5..8ba51422f 100644 --- a/contracts/examples/PullPaymentBid.sol +++ b/contracts/examples/PullPaymentBid.sol @@ -8,7 +8,7 @@ contract PullPaymentBid is PullPayment { address public highestBidder; uint public highestBid; - function bid() external { + function bid() external payable { if (msg.value <= highestBid) throw; if (highestBidder != 0) { diff --git a/contracts/examples/StoppableBid.sol b/contracts/examples/StoppableBid.sol index 61b9d43aa..53e1aebdc 100644 --- a/contracts/examples/StoppableBid.sol +++ b/contracts/examples/StoppableBid.sol @@ -9,7 +9,7 @@ contract StoppableBid is Stoppable, PullPayment { address public highestBidder; uint public highestBid; - function bid() external stopInEmergency { + function bid() external payable stopInEmergency { if (msg.value <= highestBid) throw; if (highestBidder != 0) {