From d8d2ace0dfbaf2e8b561b02c41bea6a47a82751d Mon Sep 17 00:00:00 2001 From: Trubnikov Sergey Date: Tue, 13 Sep 2022 09:29:16 +0000 Subject: [PATCH] fmt --- --- 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(>::set_collection_properties(1_u32))] + #[weight(>::set_collection_properties(1))] fn set_collection_property( &mut self, caller: caller, @@ -94,7 +94,7 @@ /// Delete collection property. /// /// @param key Property key. - #[weight(>::delete_collection_properties(1_u32))] + #[weight(>::delete_collection_properties(1))] fn delete_collection_property(&mut self, caller: caller, key: string) -> Result<()> { self.consume_store_reads_and_writes(1, 1)?; --- 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(cross_account_id: &T::CrossAccountId) -> (address, uint256) +pub fn convert_cross_account_to_tuple( + 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::(cross_account_id); @@ -82,4 +84,4 @@ let eth = *cross_account_id.as_eth(); (eth, Default::default()) } -} \ No newline at end of file +} --- 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::::get_sponsor(contract_address).ok_or("Contract has no sponsor")?; - Ok(pallet_common::eth::convert_cross_account_to_tuple::(&sponsor)) + Ok(pallet_common::eth::convert_cross_account_to_tuple::( + &sponsor, + )) } /// Check tat contract has confirmed sponsor. -- gitstuff