-
Notifications
You must be signed in to change notification settings - Fork 192
Cosmwasm 2.0+ #179
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
Cosmwasm 2.0+ #179
Conversation
eb23c29 to
ea8fca4
Compare
9288f6d to
4294a80
Compare
6cd821c to
45c8e5e
Compare
0822058 to
8e32724
Compare
8e32724 to
3b14a94
Compare
3b14a94 to
f943b41
Compare
packages/cw721/src/msg.rs
Outdated
| { | ||
| // if Some(bool), bool represents the `is_owner` check result. | ||
| // if None, `info` was none and the check is skipped. | ||
| Ok(is_minter) => is_minter.unwrap_or(true), |
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 feel like this variable should be named something like is_minter_owner ?
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.
Renamed it
packages/cw721/src/msg.rs
Outdated
| let creator_initialized = CREATOR.item.may_load(deps.storage)?; | ||
| let is_creator_or_uninitialized = | ||
| match sender.map(|addr| is_owner(deps.storage, addr)).transpose() { | ||
| // if Some(bool), bool represents the `is_owner` check result. |
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.
Generally I'm wary of comments explaining code, is there a way to name the variables so its self documenting?
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 tried, please check it out
shanev
left a comment
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.
LGTM as long as the comments by @jhernandezb and @humanalgorithm are addressed.
24028fe to
df9fb7a
Compare
fbe6463 to
ea22eb1
Compare
ea22eb1 to
665ed12
Compare
shanev
left a comment
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.
LGTM
|
Thank you @deniszagumennov !! |
Based on #172 Pull Request, another attempt to update CosmWasm in the contracts