difftreelog
fiix SolidityTypeName
in: master
1 file changed
pallets/evm-contract-helpers/src/eth.rsdiffbeforeafterboth175 ///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 // }183190184 /// Check tat contract has confirmed sponsor.191 /// Check tat contract has confirmed sponsor.185 ///192 ///