-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make constructors (non)payable #1027
Comments
Can you elaborate on this a bit? |
No, there is still only
And this is exactly the part that is about to change soon. Unpayable constructors make sense then. |
So should we non-confusingly rename this issue to "Allow ink! constructors to be non-payable" ? |
Sure, if that makes more sense to you. The issue is about allowing this |
Needs to be done before the stable release because it is a breaking change. |
When paritytech/substrate#10082 is merged there is no longer a need to pass an endowment larger than
0
except when the contract logic itself requires it. This makesendowment
no different fromvalue
in a call extrinsic.Therefore I think we should extend the
payable
logic to constructors. The UI can then remove the endowment field for non payable constructors.The text was updated successfully, but these errors were encountered: