Skip to content
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

Describe new constructor default payable behaviour #41

Closed
HCastano opened this issue Jan 17, 2022 · 1 comment
Closed

Describe new constructor default payable behaviour #41

HCastano opened this issue Jan 17, 2022 · 1 comment
Labels
good first issue Good for newcomers

Comments

@HCastano
Copy link
Contributor

Before use-ink/ink#1065 constructors in ink! were payable (that is, they accepted a value) by default. For reasons described in that PR this is no longer the default behaviour.

Now, constructors will need to opt into accepting a value through the use of the already existing #[ink(payable)] attribute.

@SkymanOne
Copy link
Contributor

Closing as outdated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants