difftreelog
Merge pull request #100 from usetech-llc/feature/NFTPAR-295
in: master
Fix offchain schema length check
1 file changed
pallets/nft/src/lib.rsdiffbeforeafterboth1277 Self::check_owner_or_admin_permissions(collection_id, sender.clone())?;1277 Self::check_owner_or_admin_permissions(collection_id, sender.clone())?;127812781279 // check schema limit1279 // check schema limit1280 ensure!(schema.len() as u32 > ChainLimit::get().offchain_schema_limit, "");1280 ensure!(schema.len() as u32 <= ChainLimit::get().offchain_schema_limit, "");128112811282 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;