Files
solidity/docs
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
..
2022-01-10 12:49:30 +05:30
2022-01-03 15:52:05 +01:00
2021-12-13 11:36:07 +01:00
2021-12-20 13:15:58 +01:00
2021-07-15 10:13:30 +02:00
2021-03-30 23:04:32 +02:00
2022-01-04 18:59:40 -05:00
2015-12-07 22:35:51 +01:00
2021-08-11 10:59:02 +02:00
2021-10-26 11:30:30 +02:00
2021-10-26 11:30:30 +02:00