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
75 cross_account_id: &T::CrossAccountId,
76) -> (address, uint256)
75where77where
76 T::AccountId: AsRef<[u8; 32]>78 T::AccountId: AsRef<[u8; 32]>,
77{79{
78 if cross_account_id.is_canonical_substrate() {80 if cross_account_id.is_canonical_substrate() {
79 let sub = convert_cross_account_to_uint256::<T>(cross_account_id);81 let sub = convert_cross_account_to_uint256::<T>(cross_account_id);
modifiedpallets/evm-contract-helpers/src/eth.rsdiffbeforeafterboth
--- a/pallets/evm-contract-helpers/src/eth.rs
+++ b/pallets/evm-contract-helpers/src/eth.rs
@@ -171,7 +171,9 @@
 	fn get_sponsor(&self, contract_address: address) -> Result<(address, uint256)> {
 		let sponsor =
 			Pallet::<T>::get_sponsor(contract_address).ok_or("Contract has no sponsor")?;
-		Ok(pallet_common::eth::convert_cross_account_to_tuple::<T>(&sponsor))
+		Ok(pallet_common::eth::convert_cross_account_to_tuple::<T>(
+			&sponsor,
+		))
 	}
 
 	/// Check tat contract has confirmed sponsor.