@@ -26,7 +26,7 @@ use sp_core::{
2626use sp_runtime:: {
2727 generic:: BlockId ,
2828 traits:: { Block as BlockT , HashFor , Header as HeaderT , NumberFor , Zero } ,
29- Justification , Justifications , StateVersion , Storage ,
29+ Justification , Justifications , Storage ,
3030} ;
3131use sp_state_machine:: {
3232 Backend as StateBackend , ChildStorageCollection , InMemoryBackend , IndexOperation ,
@@ -506,7 +506,6 @@ where
506506 & mut self ,
507507 storage : Storage ,
508508 commit : bool ,
509- state_version : StateVersion ,
510509 ) -> sp_blockchain:: Result < Block :: Hash > {
511510 check_genesis_storage ( & storage) ?;
512511
@@ -520,7 +519,6 @@ where
520519 let ( root, transaction) = self . old_state . full_storage_root (
521520 storage. top . iter ( ) . map ( |( k, v) | ( k. as_ref ( ) , Some ( v. as_ref ( ) ) ) ) ,
522521 child_delta,
523- state_version,
524522 ) ;
525523
526524 if commit {
@@ -568,17 +566,12 @@ where
568566 & mut self ,
569567 storage : Storage ,
570568 commit : bool ,
571- state_version : StateVersion ,
572569 ) -> sp_blockchain:: Result < Block :: Hash > {
573- self . apply_storage ( storage, commit, state_version )
570+ self . apply_storage ( storage, commit)
574571 }
575572
576- fn reset_storage (
577- & mut self ,
578- storage : Storage ,
579- state_version : StateVersion ,
580- ) -> sp_blockchain:: Result < Block :: Hash > {
581- self . apply_storage ( storage, true , state_version)
573+ fn reset_storage ( & mut self , storage : Storage ) -> sp_blockchain:: Result < Block :: Hash > {
574+ self . apply_storage ( storage, true )
582575 }
583576
584577 fn insert_aux < I > ( & mut self , ops : I ) -> sp_blockchain:: Result < ( ) >
0 commit comments