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:
authored and GitHub committed 2024-03-08 18:13:31 +00:00
1 parent a0c9a3d65a
commit 1fe3c5f23b
2 files changed
+7 -1

No files matched your search

+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())