From a5763d49012b808d2df3d0a71c5a10127f7d02d4 Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Tue, 05 Jul 2022 15:28:00 +0000 Subject: [PATCH] Fix unwrap --- --- a/runtime/common/src/runtime_apis.rs +++ b/runtime/common/src/runtime_apis.rs @@ -90,7 +90,7 @@ let token_data = TokenData { properties: Self::token_properties(collection, token_id, keys)?, owner: Self::token_owner(collection, token_id)?, - pieces: Self::total_pieces(collection, token_id)?.expect("Token pieces always must have some value"), + pieces: Self::total_pieces(collection, token_id)?.unwrap_or(0), }; Ok(token_data) -- gitstuff