Timeline for Error: Address must be type "payable"
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 20, 2023 at 15:56 | comment | added | FSainas |
Try this (bool success,) = msg.sender.call{value: address(this).balance}("")
|
|
Mar 20, 2023 at 15:50 | comment | added | Marcus Aurelius | Thank you for the answer, I tried: function withdraw() public { msg.sender.call{value: address(this).balance}(""); } and got back from solidity: Warning: Return value of low-level calls not used. --> contracts/Fundme2.sol:44:9: | 44 | msg.sender.call{value: address(this).balance}(""); | ^^^^^^^^^^^^^^^^^^^^^ | |
Mar 20, 2023 at 15:49 | history | edited | FSainas | CC BY-SA 4.0 |
deleted 3 characters in body
|
Mar 20, 2023 at 15:48 | history | edited | FSainas | CC BY-SA 4.0 |
Added links to more information
|
S Mar 20, 2023 at 15:46 | review | First answers | |||
Mar 23, 2023 at 19:54 | |||||
S Mar 20, 2023 at 15:46 | history | answered | FSainas | CC BY-SA 4.0 |