From d9ca3d104e281bde993957cc60f467560a869e77 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..b9dd5777 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().clone() + } } /// Intermediate balance info.