From 6110047a0dde2bae153b0321437b1678badf6341 Mon Sep 17 00:00:00 2001 From: serejkaaa512 <5125402@mail.ru> Date: Thu, 11 Apr 2024 11:55:48 +0300 Subject: [PATCH] Add root extra for Shard Accounts --- src/models/shard/shard_accounts.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/models/shard/shard_accounts.rs b/src/models/shard/shard_accounts.rs index 4678f67e..aa602fe2 100644 --- a/src/models/shard/shard_accounts.rs +++ b/src/models/shard/shard_accounts.rs @@ -68,6 +68,11 @@ impl ShardAccounts { pub fn raw_iter(&self) -> ShardAccountsRawIter<'_> { ShardAccountsRawIter::new(self.0.dict().root()) } + + /// Gets Depth Balance Info + pub fn root_extra(&self) -> &DepthBalanceInfo { + self.0.root_extra() + } } /// Intermediate balance info.