From ad6ef77393cb3fad19fd2d5d8b10f75cca21b62d Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Thu, 12 Jan 2023 13:55:21 +0000 Subject: [PATCH] fix: use set instead of mutate --- --- a/pallets/common/src/lib.rs +++ b/pallets/common/src/lib.rs @@ -1236,9 +1236,7 @@ } } - >::mutate(collection.id, |properties| { - *properties = stored_properties; - }); + >::set(collection.id, stored_properties); Ok(()) } --- a/pallets/nonfungible/src/lib.rs +++ b/pallets/nonfungible/src/lib.rs @@ -682,9 +682,7 @@ ); } - >::mutate((collection.id, token_id), |properties| { - *properties = stored_properties; - }); + >::set((collection.id, token_id), stored_properties); Ok(()) } --- a/pallets/refungible/src/lib.rs +++ b/pallets/refungible/src/lib.rs @@ -611,9 +611,7 @@ ); } - >::mutate((collection.id, token_id), |properties| { - *properties = stored_properties; - }); + >::set((collection.id, token_id), stored_properties); Ok(()) } -- gitstuff