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
74 ///74 ///
75 /// @param key Property key.75 /// @param key Property key.
76 /// @param value Propery value.76 /// @param value Propery value.
77 #[weight(<SelfWeightOf<T>>::set_collection_properties(1_u32))]77 #[weight(<SelfWeightOf<T>>::set_collection_properties(1))]
78 fn set_collection_property(78 fn set_collection_property(
79 &mut self,79 &mut self,
80 caller: caller,80 caller: caller,
94 /// Delete collection property.94 /// Delete collection property.
95 ///95 ///
96 /// @param key Property key.96 /// @param key Property key.
97 #[weight(<SelfWeightOf<T>>::delete_collection_properties(1_u32))]97 #[weight(<SelfWeightOf<T>>::delete_collection_properties(1))]
98 fn delete_collection_property(&mut self, caller: caller, key: string) -> Result<()> {98 fn delete_collection_property(&mut self, caller: caller, key: string) -> Result<()> {
99 self.consume_store_reads_and_writes(1, 1)?;99 self.consume_store_reads_and_writes(1, 1)?;
100100
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
--- 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.