-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add string varibles #55
base: master
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Approved, with a small comment
@@ -45,9 +50,11 @@ impl Contract { | |||
// Here are some global variables | |||
let _timestamp = block::timestamp(); | |||
let _amount = msg::value(); | |||
let _base_uri = self.base_uri.get_string(); |
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.
I don't think we need to add this here. This section is for global variables. We are already showing examples for state variables in the previous function.
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.
I put here is because we don't mention how to get value from string type state, maybe we add another read-only function for this and also put how to get owner
and max_supply
there?
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.
Either that, or have a specific "section" for reading those (something under a different comment, since that one suggests those are "global variables")
Value set to string is different from other types, we need to mention it.