We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d33ea7b commit bcc2cd2Copy full SHA for bcc2cd2
ton_core/src/types/ton_address.rs
@@ -29,7 +29,10 @@ pub struct TonAddress {
29
impl TonAddress {
30
// Is used to identify TON address
31
pub const ZERO: Self = TonAddress::new(0, TonHash::ZERO);
32
+ pub const NATIVE: Self = TonAddress::new(0, TonHash::ZERO);
33
+
34
pub fn is_zero(&self) -> bool { self == &TonAddress::ZERO }
35
+ pub fn is_native(&self) -> bool { self == &TonAddress::NATIVE }
36
37
pub const fn new(workchain: i32, hash: TonHash) -> Self { Self { workchain, hash } }
38
0 commit comments