-
Notifications
You must be signed in to change notification settings - Fork 43
Description
This needs to be changed in the parser grammar, and also the built-in definitions...
https://docs.soliditylang.org/en/latest/050-breaking-changes.html
The
address
type was split intoaddress
andaddress payable
, where onlyaddress payable
provides thetransfer
function. Anaddress payable
can be directly converted to anaddress
, but the other way around is not allowed. Convertingaddress
toaddress payable
is possible via conversion throughuint160
. Ifc
is a contract,address(c)
results inaddress payable
only ifc
has a payable fallback function. If you use the :ref:withdraw pattern<withdrawal_pattern>
, you most likely do not have to change your code becausetransfer
is only used onmsg.sender
instead of stored addresses andmsg.sender
is anaddress payable
.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status