Skip to content

Commit

Permalink
Fix: Descending order requires swapped bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
maurolacy committed Apr 17, 2021
1 parent b3c72a3 commit 79a4512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/cw4-group/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ fn list_members_by_weight(
let members: StdResult<Vec<_>> = members()
.idx
.weight
.range(deps.storage, start, None, Order::Descending)
.range(deps.storage, None, start, Order::Descending)
.take(limit)
.map(|item| {
let (key, weight) = item?;
Expand Down

0 comments on commit 79a4512

Please sign in to comment.