1
2
3
4
5
6
7
8
9
10
11
12
13
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) }
}