pub fn validate_address<H: Into<Addr>>(input: H) -> StdResult<Addr> {
    let h: Addr = input.into();
    if h.to_string().trim().is_empty() {
        Err(StdError::generic_err("address must not be empty"))
    } else {
        Ok(h)
    }
}
/// A helper that ensures address params are non-empty.
A helper that ensures address params are non-empty.
A helper that ensures address params are non - empty .
pub fn validate_address<H: Into<Addr>>(input: H) -> StdResult<Addr> {
    let h: Addr = input.into();
    if h.to_string().trim().is_empty() {
        Err(StdError::generic_err("address must not be empty"))
    } else {
        Ok(h)
    }
}
pub fn validate_address < H : Into < Addr > > ( input : H ) -> StdResult < Addr > { let h : Addr = input . into ( ) ; if h . to_string ( ) . trim ( ) . is_empty ( ) { Err ( StdError :: generic_err ( " " ) ) } else { Ok ( h ) } }
A helper that ensures address params are non-empty.
A helper that ensures address params are non - empty .
input
H
input
H