Timeline for What's the difference between 'address' and 'address payable'?
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
S Jan 23, 2023 at 13:14 | history | edited | Jesbus | CC BY-SA 4.0 |
Updated answer for Solidity 0.8.0 (minor typo)
|
S Jan 23, 2023 at 13:14 | history | suggested | Maksym Nyrka | CC BY-SA 4.0 |
Updated answer for Solidity 0.8.0 (minor typo)
|
Jan 23, 2023 at 11:37 | review | Suggested edits | |||
S Jan 23, 2023 at 13:14 | |||||
Jun 13, 2022 at 21:06 | comment | added | Luke Hutchison |
.transfer() and .send() are basically deprecated now, with .call{value: X}() being the new recommended way to send X ETH wei to a recipient. Therefore, since .call works with both address and address payable , I assume this means that address payable is more or less useless at this point?
|
|
Feb 2, 2022 at 15:26 | comment | added | fedesc |
i don't get it address payable addr4 = payable(addr1); . why should i state payable on the variable and also cast the address itself to a payable address. what is the purpose of setting the variable as payble if the second one is what adds the functionality of transfer and send. thanks
|
|
Oct 2, 2021 at 23:43 | comment | added | peizhao |
Also, since Solidity 0.8.0, change msg.sender.transfer(x) to payable(msg.sender).transfer(x) . Source: docs.soliditylang.org/en/v0.8.2/…
|
|
Dec 22, 2020 at 13:55 | comment | added | Jesbus |
Note: Since Solidity 0.8.0, address literals such as address(0x8aB27....) have the type address instead of address payable
|
|
Dec 27, 2019 at 20:26 | history | edited | Jesbus | CC BY-SA 4.0 |
Updated answer for Solidity 0.6.0
|
Dec 27, 2019 at 20:21 | comment | added | Jesbus |
Note: Since Solidity 0.6.0, you can cast to address payable like this: payable(...)
|
|
Apr 27, 2019 at 17:38 | comment | added | Mikhail Vladimirov |
I would ad that type address payable was added in Solidity 0.5.0, and prior to this release, address type worked as address payable .
|
|
Apr 27, 2019 at 17:07 | history | edited | Jesbus | CC BY-SA 4.0 |
deleted 31 characters in body
|
Jan 16, 2019 at 11:31 | history | edited | Jesbus | CC BY-SA 4.0 |
added 1 character in body
|
Dec 18, 2018 at 7:45 | history | edited | Jesbus | CC BY-SA 4.0 |
added 2 characters in body
|
Dec 15, 2018 at 17:44 | history | edited | Jesbus | CC BY-SA 4.0 |
added 3 characters in body
|
Dec 15, 2018 at 12:05 | history | answered | Jesbus | CC BY-SA 4.0 |