From d01786f0aa4e128f70aea2bc53a8d3c61294a587 Mon Sep 17 00:00:00 2001 From: mirgj Date: Thu, 22 Feb 2018 01:42:57 +0800 Subject: Update solidity-by-example.rst highestBidder is the address. it's highestBid that should be != 0 to be considered as pending return. It's that right? --- docs/solidity-by-example.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/solidity-by-example.rst') diff --git a/docs/solidity-by-example.rst b/docs/solidity-by-example.rst index b663083c..b8e158ac 100644 --- a/docs/solidity-by-example.rst +++ b/docs/solidity-by-example.rst @@ -272,7 +272,7 @@ activate themselves. // money back. require(msg.value > highestBid); - if (highestBidder != 0) { + if (highestBid != 0) { // Sending back the money by simply using // highestBidder.send(highestBid) is a security risk // because it could execute an untrusted contract. -- cgit