git.delta.rocks / unique-network / refs/commits / 96983dc72c18

difftreelog

Merge pull request #100 from usetech-llc/feature/NFTPAR-295

str-mv2021-02-11parents: #01502f1 #8ba36c7.patch.diff
in: master
Fix offchain schema length check

1 file changed

modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
1277 Self::check_owner_or_admin_permissions(collection_id, sender.clone())?;1277 Self::check_owner_or_admin_permissions(collection_id, sender.clone())?;
12781278
1279 // check schema limit1279 // check schema limit
1280 ensure!(schema.len() as u32 > ChainLimit::get().offchain_schema_limit, "");1280 ensure!(schema.len() as u32 <= ChainLimit::get().offchain_schema_limit, "");
12811281
1282 let mut target_collection = <Collection<T>>::get(collection_id);1282 let mut target_collection = <Collection<T>>::get(collection_id);
1283 target_collection.offchain_schema = schema;1283 target_collection.offchain_schema = schema;