Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jhernandezb committed Dec 17, 2024
1 parent b57cf35 commit 2223861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sg-minter-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ pub fn pick_token(storage: &mut dyn Storage, token_id: u32) -> Result<u32, Minte
};

// item has been picked, remove it from the bucket
bucket.remove(token_index as usize);
bucket.remove(token_index);

// if the bucket is empty, remove it from the available buckets
if bucket.is_empty() {
available_buckets.remove(bucket_index as usize);
available_buckets.remove(bucket_index);
// if there are no more buckets, remove the available buckets key else update it with the remaining buckets
if available_buckets.is_empty() {
storage.remove(&AVAILABLE_BUCKETS_KEY);
Expand Down

0 comments on commit 2223861

Please sign in to comment.