@@ -124,6 +124,7 @@ to receive their Ether - contracts cannot activate themselves.
124
124
// msg.sender is not of type `address payable` and must be
125
125
// explicitly converted using `payable(msg.sender)` in order
126
126
// use the member function `send()`.
127
+ // This will report a warning
127
128
if (!payable(msg.sender).send(amount)) {
128
129
// No need to call throw here, just reset the amount owing
129
130
pendingReturns[msg.sender] = amount;
@@ -160,6 +161,7 @@ to receive their Ether - contracts cannot activate themselves.
160
161
emit AuctionEnded(highestBidder, highestBid);
161
162
162
163
// 3. Interaction
164
+ // This will report a warning
163
165
beneficiary.transfer(highestBid);
164
166
}
165
167
}
@@ -310,6 +312,7 @@ invalid bids.
310
312
// the same deposit.
311
313
bidToCheck.blindedBid = bytes32(0);
312
314
}
315
+ // This will report a warning
313
316
payable(msg.sender).transfer(refund);
314
317
}
315
318
@@ -323,6 +326,7 @@ invalid bids.
323
326
// conditions -> effects -> interaction).
324
327
pendingReturns[msg.sender] = 0;
325
328
329
+ // This will report a warning
326
330
payable(msg.sender).transfer(amount);
327
331
}
328
332
}
@@ -336,6 +340,7 @@ invalid bids.
336
340
if (ended) revert AuctionEndAlreadyCalled();
337
341
emit AuctionEnded(highestBidder, highestBid);
338
342
ended = true;
343
+ // This will report a warning
339
344
beneficiary.transfer(highestBid);
340
345
}
341
346
0 commit comments