reset cache when storage possibly change (fix init of tests). (#9665)

* reset cache when storage possibly change (fix init of tests).

* remove backend_storage_mut

* fix warn

* remove remaining backend_storage_mut
This commit is contained in:
cheme
2021-09-06 12:42:02 +02:00
committed by GitHub
parent d99c0cead7
commit 61941f2806
4 changed files with 7 additions and 15 deletions
@@ -56,11 +56,6 @@ where
self.essence.backend_storage()
}
/// Get backend storage reference.
pub fn backend_storage_mut(&mut self) -> &mut S {
self.essence.backend_storage_mut()
}
/// Get trie root.
pub fn root(&self) -> &H::Out {
self.essence.root()