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.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -682,9 +682,7 @@
);
}
- <TokenProperties<T>>::mutate((collection.id, token_id), |properties| {
- *properties = stored_properties;
- });
+ <TokenProperties<T>>::set((collection.id, token_id), stored_properties);
Ok(())
}
pallets/refungible/src/lib.rsdiffbeforeafterboth611 );611 );612 }612 }613613614 <TokenProperties<T>>::mutate((collection.id, token_id), |properties| {614 <TokenProperties<T>>::set((collection.id, token_id), stored_properties);615 *properties = stored_properties;616 });617615618 Ok(())616 Ok(())619 }617 }