From a97104092cd36a205d65359e7b9f208d07818d8b Mon Sep 17 00:00:00 2001 From: Ermal Kaleci Date: Tue, 17 Oct 2023 10:54:25 +0200 Subject: [PATCH] add method to expose storage_changes.trie_diffs --- lib/src/executor/runtime_host.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/src/executor/runtime_host.rs b/lib/src/executor/runtime_host.rs index bdfc8342bf..b63ad4b288 100644 --- a/lib/src/executor/runtime_host.rs +++ b/lib/src/executor/runtime_host.rs @@ -253,6 +253,12 @@ impl StorageChanges { .remove(&None) .unwrap_or(storage_diff::TrieDiff::empty()) } + + pub fn trie_diffs( + &self, + ) -> &hashbrown::HashMap>, storage_diff::TrieDiff, fnv::FnvBuildHasher> { + &self.inner.trie_diffs + } } impl fmt::Debug for StorageChanges {