mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3566 from mirgj/patch-1
Update solidity-by-example.rst
This commit is contained in:
commit
bb2a48e05c
@ -272,7 +272,7 @@ activate themselves.
|
|||||||
// money back.
|
// money back.
|
||||||
require(msg.value > highestBid);
|
require(msg.value > highestBid);
|
||||||
|
|
||||||
if (highestBidder != 0) {
|
if (highestBid != 0) {
|
||||||
// Sending back the money by simply using
|
// Sending back the money by simply using
|
||||||
// highestBidder.send(highestBid) is a security risk
|
// highestBidder.send(highestBid) is a security risk
|
||||||
// because it could execute an untrusted contract.
|
// because it could execute an untrusted contract.
|
||||||
|
Loading…
Reference in New Issue
Block a user