From 976dd7aae2e7ee6c8a0fdbe368f393b1c26ad704 Mon Sep 17 00:00:00 2001 From: Drazen Urch Date: Wed, 15 Sep 2021 17:28:49 +0200 Subject: [PATCH] Add block_height method to Delegation (#778) Co-authored-by: Drazen Urch --- common/mixnet-contract/src/delegation.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/mixnet-contract/src/delegation.rs b/common/mixnet-contract/src/delegation.rs index 023472bb02..f0efe37297 100644 --- a/common/mixnet-contract/src/delegation.rs +++ b/common/mixnet-contract/src/delegation.rs @@ -45,6 +45,10 @@ impl Delegation { pub fn owner(&self) -> Addr { self.owner.clone() } + + pub fn block_height(&self) -> u64 { + self.block_height + } } impl Display for Delegation {