Skip to content

Commit

Permalink
Merge pull request #491 from giansalex/fix-cw721-query-tokens
Browse files Browse the repository at this point in the history
Fix cw721 query_all_tokens
  • Loading branch information
ethanfrey authored Oct 16, 2021
2 parents 4819351 + fc5593e commit 08f23a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contracts/cw721-base/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ where
limit: Option<u32>,
) -> StdResult<TokensResponse> {
let limit = limit.unwrap_or(DEFAULT_LIMIT).min(MAX_LIMIT) as usize;
let start_addr = maybe_addr(deps.api, start_after)?;
let start = start_addr.map(|addr| Bound::exclusive(addr.as_ref()));
let start = start_after.map(Bound::exclusive);

let tokens: StdResult<Vec<String>> = self
.tokens
Expand Down

0 comments on commit 08f23a0

Please sign in to comment.