mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-16 23:41:02 +00:00
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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user