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) {