cfx_types/address_with_space.rs
use crate::space::Space;
use ethereum_types::Address;
#[derive(Default, Eq, PartialEq, Hash, Copy, Clone, Debug, Ord, PartialOrd)]
pub struct AddressWithSpace {
    pub address: Address,
    pub space: Space,
}
impl AddressWithSpace {
    #[inline]
    pub fn assert_native(&self) { assert_eq!(self.space, Space::Native) }
    #[inline]
    pub fn assert_ethereum(&self) { assert_eq!(self.space, Space::Ethereum) }
}