Skip to content

Commit b7e011b

Browse files
committed
fix integration test
1 parent 096f662 commit b7e011b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pallets/rmrk-core/src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ where
329329
) -> Result<CollectionId, DispatchError> {
330330
Collections::<T>::try_mutate_exists(collection_id, |collection| -> DispatchResult {
331331
let collection = collection.as_mut().ok_or(Error::<T>::CollectionUnknown)?;
332-
collection.max = Some(collection.nfts_count);
332+
collection.max = Some(0);
333333
Ok(())
334334
})?;
335335

tests/src/util/tx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ export async function lockCollection(
900900

901901
await getCollection(api, collectionId).then((collectionOption) => {
902902
const collection = collectionOption.unwrap();
903-
expect(collection.max.unwrap().toNumber()).to.be.equal(max);
903+
expect(collection.max.unwrap().toNumber()).to.be.equal(0);
904904
});
905905
}
906906

0 commit comments

Comments
 (0)