solidity/docs/examples
Mohamed Safouen Bouabid 4c20821e6d Explaining payable(msg.sender)
At this point of the documentation a new Solidity learner will not understand this line without further explanation:
if (!payable(msg.sender).send(amount)) {
It should explain how msg.sender is of type "address" and not "address payable" so it cannot send or receive Ether. Therefore it must be explicitly converted to payable.
2022-01-10 12:49:30 +05:30
..
blind-auction.rst Explaining payable(msg.sender) 2022-01-10 12:49:30 +05:30
micropayment.rst fix typo 2022-01-05 21:58:41 -05:00
modular.rst updated public to external for the functions 2021-08-12 16:24:40 +02:00
safe-remote.rst Updated some examples following the naming convention 2021-08-26 11:59:10 +02:00
voting.rst updated public to external for the functions 2021-08-12 16:24:40 +02:00