-
Notifications
You must be signed in to change notification settings - Fork 353
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
Fix min threshold in cw3-flex-multisig #528
Conversation
Put on hold (low prio) till all matters are clarified. #528 (comment) |
12375c4
to
15c69c0
Compare
15c69c0
to
3f89079
Compare
5d2b562
to
2b26ae1
Compare
30ec166
to
6078083
Compare
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.
Looks good.
@@ -934,6 +945,12 @@ mod tests { | |||
], | |||
); | |||
|
|||
// VOTER1 cannot vote again |
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.
👍🏼
) -> StdResult<Option<u64>> { | ||
match height { | ||
Some(height) => self.member_at_height(querier, member.to_string(), height.into()), | ||
None => Map::new(MEMBERS_KEY).query(querier, self.addr(), member), |
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.
Wouldn't a raw query make sense here? Not sure, but, given that you already have querier
, maybe the usage is simpler / clearer.
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.
Map::query
does use a raw query under the hood (it calculated the final key in the other storage).
Querying at historical height does need smart query.
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.
NB: This code infers the type of Map completely? Based on self.addr()
and the return value? Wow!
Co-authored-by: Mauro Lacy <maurolacy@users.noreply.github.com>
95c8d9a
to
8028c24
Compare
Closes #527