@@ -124,6 +124,7 @@ to receive their Ether - contracts cannot activate themselves.
124124 // msg.sender is not of type `address payable` and must be
125125 // explicitly converted using `payable(msg.sender)` in order
126126 // use the member function `send()`.
127+ // This will report a warning
127128 if (!payable(msg.sender).send(amount)) {
128129 // No need to call throw here, just reset the amount owing
129130 pendingReturns[msg.sender] = amount;
@@ -160,6 +161,7 @@ to receive their Ether - contracts cannot activate themselves.
160161 emit AuctionEnded(highestBidder, highestBid);
161162
162163 // 3. Interaction
164+ // This will report a warning
163165 beneficiary.transfer(highestBid);
164166 }
165167 }
@@ -310,6 +312,7 @@ invalid bids.
310312 // the same deposit.
311313 bidToCheck.blindedBid = bytes32(0);
312314 }
315+ // This will report a warning
313316 payable(msg.sender).transfer(refund);
314317 }
315318
@@ -323,6 +326,7 @@ invalid bids.
323326 // conditions -> effects -> interaction).
324327 pendingReturns[msg.sender] = 0;
325328
329+ // This will report a warning
326330 payable(msg.sender).transfer(amount);
327331 }
328332 }
@@ -336,6 +340,7 @@ invalid bids.
336340 if (ended) revert AuctionEndAlreadyCalled();
337341 emit AuctionEnded(highestBidder, highestBid);
338342 ended = true;
343+ // This will report a warning
339344 beneficiary.transfer(highestBid);
340345 }
341346
0 commit comments