pub fn parse_address(input: &str) -> Result<Address> {
    match Address::from_str(input) {
        Ok(addr) => Ok(to_universal_identity(addr.network(), &addr, addr.is_new)),
        Err(e) => Err(MercuryError::utils(UtilsError::ParseCKBAddressError(e)).into()),
    }
}
// Convert to short address, use as universal identity
Convert to short address, use as universal identity
Convert to short address use as universal identity
pub fn parse_address(input: &str) -> Result<Address> {
    match Address::from_str(input) {
        Ok(addr) => Ok(to_universal_identity(addr.network(), &addr, addr.is_new)),
        Err(e) => Err(MercuryError::utils(UtilsError::ParseCKBAddressError(e)).into()),
    }
}
pub fn parse_address ( input : & str ) -> Result < Address > { match Address :: from_str ( input ) { Ok ( addr ) => Ok ( to_universal_identity ( addr . network ( ) , & addr , addr . is_new ) ) , Err ( e ) => Err ( MercuryError :: utils ( UtilsError :: ParseCKBAddressError ( e ) ) . into ( ) ) , } }
Convert to short address, use as universal identity
Convert to short address use as universal identity
input
&str
input
&str