You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it's unlikely a contract deployer would send ETH to it by accident
Specification
make the default only modifiability on __init__ functions to be payable. disallow all modifier decorators on the __init__ function - @view and @pure should also be disallowed as __init__ functions are modifying by nature. For backwards compatibility, allow @payable on __init__ functions for 1-2 minor releases but mark it as deprecated.
Backwards Compatibility
modifer decorators will no longer be allowed on __init__() functions
Dependencies
If this VIP depends on any other VIPs being implemented, please mention them.
References
Add any references that this VIP might reference (other VIPs/issues, links to blog posts, etc.)
Simple Summary
as title
Motivation
it's unlikely a contract deployer would send ETH to it by accident
Specification
make the
defaultonly modifiability on__init__
functions to bepayable
. disallow all modifier decorators on the__init__
function -@view
and@pure
should also be disallowed as__init__
functions are modifying by nature. For backwards compatibility, allow@payable
on__init__
functions for 1-2 minor releases but mark it as deprecated.Backwards Compatibility
modifer decorators will no longer be allowed on
__init__()
functionsDependencies
If this VIP depends on any other VIPs being implemented, please mention them.
References
Add any references that this VIP might reference (other VIPs/issues, links to blog posts, etc.)
Copyright
Copyright and related rights waived via CC0
The text was updated successfully, but these errors were encountered: