git.delta.rocks / unique-network / refs/commits / 1f3c0591f345

difftreelog

fiix SolidityTypeName

PraetorP2022-12-12parent: #d1896d4.patch.diff
in: master

1 file changed

modifiedpallets/evm-contract-helpers/src/eth.rsdiffbeforeafterboth
175 ///175 ///
176 /// @param contractAddress The contract for which a sponsor is requested.176 /// @param contractAddress The contract for which a sponsor is requested.
177 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.177 /// @return Tuble with sponsor address and his substrate mirror. If there is no confirmed sponsor error "Contract has no sponsor" throw.
178 fn sponsor(&self, contract_address: address) -> Result<EthCrossAccount> {178 fn sponsor(&self, contract_address: address) -> Result<(address, uint256)> {
179 Ok(EthCrossAccount::from_sub_cross_account::<T>(179 let sponsor =
180 &Pallet::<T>::get_sponsor(contract_address).ok_or("Contract has no sponsor")?,180 Pallet::<T>::get_sponsor(contract_address).ok_or("Contract has no sponsor")?;
181 ))181 Ok(pallet_common::eth::convert_cross_account_to_tuple::<T>(
182 &sponsor,
183 ))
182 }184 }
185 // fn sponsor(&self, contract_address: address) -> Result<EthCrossAccount> {
186 // Ok(EthCrossAccount::from_sub_cross_account::<T>(
187 // &Pallet::<T>::get_sponsor(contract_address).ok_or("Contract has no sponsor")?,
188 // ))
189 // }
183190
184 /// Check tat contract has confirmed sponsor.191 /// Check tat contract has confirmed sponsor.
185 ///192 ///