git.delta.rocks / unique-network / refs/commits / d8d2ace0dfba

difftreelog

fmt

Trubnikov Sergey2022-09-13parent: #b5cee7d.patch.diff
in: master

3 files changed

modifiedpallets/common/src/erc.rsdiffbeforeafterboth
--- a/pallets/common/src/erc.rs
+++ b/pallets/common/src/erc.rs
@@ -74,7 +74,7 @@
 	///
 	/// @param key Property key.
 	/// @param value Propery value.
-	#[weight(<SelfWeightOf<T>>::set_collection_properties(1_u32))]
+	#[weight(<SelfWeightOf<T>>::set_collection_properties(1))]
 	fn set_collection_property(
 		&mut self,
 		caller: caller,
@@ -94,7 +94,7 @@
 	/// Delete collection property.
 	///
 	/// @param key Property key.
-	#[weight(<SelfWeightOf<T>>::delete_collection_properties(1_u32))]
+	#[weight(<SelfWeightOf<T>>::delete_collection_properties(1))]
 	fn delete_collection_property(&mut self, caller: caller, key: string) -> Result<()> {
 		self.consume_store_reads_and_writes(1, 1)?;
 
modifiedpallets/common/src/eth.rsdiffbeforeafterboth
--- a/pallets/common/src/eth.rs
+++ b/pallets/common/src/eth.rs
@@ -71,9 +71,11 @@
 }
 
 /// Convert `CrossAccountId` to `(address, uint256)`.
-pub fn convert_cross_account_to_tuple<T: Config>(cross_account_id: &T::CrossAccountId) -> (address, uint256)
+pub fn convert_cross_account_to_tuple<T: Config>(
+	cross_account_id: &T::CrossAccountId,
+) -> (address, uint256)
 where
-	T::AccountId: AsRef<[u8; 32]>
+	T::AccountId: AsRef<[u8; 32]>,
 {
 	if cross_account_id.is_canonical_substrate() {
 		let sub = convert_cross_account_to_uint256::<T>(cross_account_id);
@@ -82,4 +84,4 @@
 		let eth = *cross_account_id.as_eth();
 		(eth, Default::default())
 	}
-}
\ No newline at end of file
+}
modifiedpallets/evm-contract-helpers/src/eth.rsdiffbeforeafterboth

no syntactic changes