mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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?
This commit is contained in:
parent
20d8254029
commit
d01786f0aa
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user