We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When #203 lands, we'll have basic support for structs.
struct House: price: u256 size: u256 vacant: bool contract City: pub def get_price() -> u256: building: House = House(300, 500, true) assert building.size == 500 assert building.price == 300 assert building.vacant return building.price
However, what's not working yet is assigning a struct to storage like self.house = House(300, 500, true)
self.house = House(300, 500, true)
I haven't looked into it yet.
The text was updated successfully, but these errors were encountered:
This landed already
Sorry, something went wrong.
No branches or pull requests
What is wrong?
When #203 lands, we'll have basic support for structs.
However, what's not working yet is assigning a struct to storage like
self.house = House(300, 500, true)
How can it be fixed
I haven't looked into it yet.
The text was updated successfully, but these errors were encountered: