From 96983dc72c1823bd952d0765df333ddb79243b3d Mon Sep 17 00:00:00 2001 From: str-mv <51784859+str-mv@users.noreply.github.com> Date: Thu, 11 Feb 2021 14:16:02 +0000 Subject: [PATCH] Merge pull request #100 from usetech-llc/feature/NFTPAR-295 Fix offchain schema length check --- --- 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; -- gitstuff