-
Notifications
You must be signed in to change notification settings - Fork 6
Added Vyper Example #16
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
base: master
Are you sure you want to change the base?
Conversation
| """ | ||
|
|
||
| # Store the owner of a particular domain | ||
| domainOwner: public(map(string[40], address)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't you need @imp for all the fields?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep... haha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, the original example doesn't have it either? Might be an internal-only thing or a missing requirement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a note in a comment if its an internal-only thing, or maybe something like @imp internal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, sometimes we called such things "derived requirements" if they're an implementation detail that doesn't directly link to an upstream requirement but helps implement one in practice.
Do all public getters need a requirement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check out Line 20
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, idk, I've never done requirement before lol. But it seems logical that all public things need to be tied to requirements. And I guess private functions are implementation details and don't really matter.
Unless you start changing a private function and it affects a bunch of public methods - then you need to go over all of them...
Summary
Add an implementation written in Vyper for the DNS example