difftreelog
fmt
in: master
3 files changed
pallets/common/src/erc.rsdiffbeforeafterboth173 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.180 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.174 fn get_collection_sponsor(&self) -> Result<(address, uint256)> {181 fn get_collection_sponsor(&self) -> Result<(address, uint256)> {175 let sponsor = match self.collection.sponsorship {182 let sponsor = match self.collection.sponsorship {176 SponsorshipState::Disabled | SponsorshipState::Unconfirmed(_) => return Ok(Default::default()),183 SponsorshipState::Disabled | SponsorshipState::Unconfirmed(_) => {184 return Ok(Default::default())185 }177 SponsorshipState::Confirmed(ref sponsor) => sponsor,186 SponsorshipState::Confirmed(ref sponsor) => sponsor,178 };187 };179 let sponsor = T::CrossAccountId::from_sub(sponsor.clone());188 let sponsor = T::CrossAccountId::from_sub(sponsor.clone());pallets/common/src/eth.rsdiffbeforeafterboth--- a/pallets/common/src/eth.rs
+++ b/pallets/common/src/eth.rs
@@ -60,7 +60,7 @@
}
/// Convert `uint256` to `CrossAccountId`.
-pub fn convert_uint256_to_cross_account<T: Config>(from: uint256) -> T::CrossAccountId
+pub fn convert_uint256_to_cross_account<T: Config>(from: uint256) -> T::CrossAccountId
where
T::AccountId: From<[u8; 32]>,
{
pallets/evm-contract-helpers/src/eth.rsdiffbeforeafterboth--- a/pallets/evm-contract-helpers/src/eth.rs
+++ b/pallets/evm-contract-helpers/src/eth.rs
@@ -357,7 +357,7 @@
<SponsorBasket<T>>::insert(contract_address, who.as_eth(), block_number);
- Some(sponsor)
+ Some(sponsor)
}
}