Remove unused parent_hash in OverlayedChanges::into_storage_changes (#11011)

Ref https://github.com/paritytech/substrate/pull/10922#issuecomment-1064258443

CC @cheme
This commit is contained in:
Liu-Cheng Xu
2022-03-11 02:35:11 +08:00
committed by GitHub
parent c939d0a7a0
commit 47f96b6584
5 changed files with 2 additions and 13 deletions
@@ -660,7 +660,6 @@ where
self.overlay
.drain_storage_changes(
self.backend,
Default::default(),
self.storage_transaction_cache,
Default::default(), // using any state
)
@@ -680,12 +679,7 @@ where
}
let changes = self
.overlay
.drain_storage_changes(
self.backend,
Default::default(),
self.storage_transaction_cache,
state_version,
)
.drain_storage_changes(self.backend, self.storage_transaction_cache, state_version)
.expect(EXT_NOT_ALLOWED_TO_FAIL);
self.backend
.commit(