Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmacer committed Oct 17, 2022
1 parent 096f662 commit b7e011b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallets/rmrk-core/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ where
) -> Result<CollectionId, DispatchError> {
Collections::<T>::try_mutate_exists(collection_id, |collection| -> DispatchResult {
let collection = collection.as_mut().ok_or(Error::<T>::CollectionUnknown)?;
collection.max = Some(collection.nfts_count);
collection.max = Some(0);
Ok(())
})?;

Expand Down
2 changes: 1 addition & 1 deletion tests/src/util/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ export async function lockCollection(

await getCollection(api, collectionId).then((collectionOption) => {
const collection = collectionOption.unwrap();
expect(collection.max.unwrap().toNumber()).to.be.equal(max);
expect(collection.max.unwrap().toNumber()).to.be.equal(0);
});
}

Expand Down

0 comments on commit b7e011b

Please sign in to comment.