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

property.SetMethod is null, compilation failed #982

Open
chenzhitong opened this issue Mar 5, 2024 · 4 comments
Open

property.SetMethod is null, compilation failed #982

chenzhitong opened this issue Mar 5, 2024 · 4 comments
Assignees

Comments

@chenzhitong
Copy link
Member

Assigning a value to a property that does not have a Set method in the constructor method will fail to compile

This code compiles and executes fine in a c# console application.
image

But in the smart contract, it doesn't compile successfully
image

image
@Jim8y
Copy link
Contributor

Jim8y commented Mar 5, 2024

@shargon

@shargon
Copy link
Member

shargon commented Mar 5, 2024

We need to autogenerate the set method 🤔

@Jim8y
Copy link
Contributor

Jim8y commented Mar 6, 2024

can not reproduce your problem. Please check out my new pr.

@chenzhitong
Copy link
Member Author

can not reproduce your problem. Please check out my new pr.

image Error when there is no set method

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

No branches or pull requests

3 participants