--- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -1277,7 +1277,7 @@ Self::check_owner_or_admin_permissions(collection_id, sender.clone())?; // check schema limit - ensure!(schema.len() as u32 > ChainLimit::get().offchain_schema_limit, ""); + ensure!(schema.len() as u32 <= ChainLimit::get().offchain_schema_limit, ""); let mut target_collection = >::get(collection_id); target_collection.offchain_schema = schema;