Skip to content

Commit

Permalink
fix(storage): ensure error querying pins on unexisting object
Browse files Browse the repository at this point in the history
  • Loading branch information
amimart committed Mar 13, 2023
1 parent f9799e6 commit 7e269ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions contracts/cw-storage/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,8 @@ pub mod query {
after: Option<Cursor>,
first: Option<u32>,
) -> StdResult<ObjectPinsResponse> {
objects().load(deps.storage, id.clone())?;

let handler: PaginationHandler<Pin, (String, Addr)> =
PaginationHandler::from(BUCKET.load(deps.storage)?.pagination);

Expand Down

0 comments on commit 7e269ed

Please sign in to comment.