Fix example contracts

pull/118/head
Arkadiy Kukarkin 8 years ago
parent bb22cd62ac
commit 9c81dd29bb
  1. 2
      contracts/examples/BadPushPayments.sol
  2. 2
      contracts/examples/GoodPullPayments.sol
  3. 2
      contracts/examples/PullPaymentBid.sol
  4. 2
      contracts/examples/StoppableBid.sol

@ -7,7 +7,7 @@ contract BadPushPayments {
address highestBidder;
uint highestBid;
function bid() {
function bid() payable {
if (msg.value < highestBid) throw;
if (highestBidder != 0) {

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

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

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

Loading…
Cancel
Save