Skip to content

Commit

Permalink
moving comment closer to line it describes
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Nov 7, 2023
1 parent 291f4c7 commit 51326e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contracts/solidity/signature-example/ReceiverPays.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
// This will report a warning due to deprecated selfdestruct

contract ReceiverPays {
address owner = msg.sender;

Expand All @@ -23,6 +23,7 @@ contract ReceiverPays {
/// destroy the contract and reclaim the leftover funds.
function shutdown() external {
require(msg.sender == owner, "only owner can shutdown");
// This will report a warning due to deprecated selfdestruct
selfdestruct(payable(msg.sender));
}

Expand Down

0 comments on commit 51326e0

Please sign in to comment.