Contracts: Fix terminate benchmark (#3558)

Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Co-authored-by: command-bot <>
This commit is contained in:
PG Herveou
2024-03-08 19:13:31 +01:00
committed by GitHub
parent a0c9a3d65a
commit 1fe3c5f23b
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -108,6 +108,11 @@ impl<T: Config> ContractInfo<T> {
Ok(contract)
}
/// Returns the number of locked delegate dependencies.
pub fn delegate_dependencies_count(&self) -> usize {
self.delegate_dependencies.len()
}
/// Associated child trie unique id is built from the hash part of the trie id.
pub fn child_trie_info(&self) -> ChildInfo {
ChildInfo::new_default(self.trie_id.as_ref())