difftreelog
fix use set instead of mutate
in: master
3 files changed
pallets/common/src/lib.rsdiffbeforeafterboth--- a/pallets/common/src/lib.rs
+++ b/pallets/common/src/lib.rs
@@ -1236,9 +1236,7 @@
}
}
- <CollectionProperties<T>>::mutate(collection.id, |properties| {
- *properties = stored_properties;
- });
+ <CollectionProperties<T>>::set(collection.id, stored_properties);
Ok(())
}
pallets/nonfungible/src/lib.rsdiffbeforeafterboth682 );682 );683 }683 }684684685 <TokenProperties<T>>::mutate((collection.id, token_id), |properties| {685 <TokenProperties<T>>::set((collection.id, token_id), stored_properties);686 *properties = stored_properties;687 });688686689 Ok(())687 Ok(())690 }688 }pallets/refungible/src/lib.rsdiffbeforeafterboth--- a/pallets/refungible/src/lib.rs
+++ b/pallets/refungible/src/lib.rs
@@ -611,9 +611,7 @@
);
}
- <TokenProperties<T>>::mutate((collection.id, token_id), |properties| {
- *properties = stored_properties;
- });
+ <TokenProperties<T>>::set((collection.id, token_id), stored_properties);
Ok(())
}