File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
crates/evm-nonces-recovery/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55
66use core:: marker:: PhantomData ;
77
8- #[ cfg( feature = "try-runtime" ) ]
9- use frame_support:: sp_std:: vec:: Vec ;
108use frame_support:: {
119 log:: { error, info} ,
1210 pallet_prelude:: * ,
1311 sp_std:: collections:: btree_set:: BTreeSet ,
1412 traits:: OnRuntimeUpgrade ,
1513} ;
14+ #[ cfg( feature = "try-runtime" ) ]
15+ use frame_support:: { sp_runtime:: TryRuntimeError , sp_std:: vec:: Vec } ;
1616use pallet_evm:: AccountCodes ;
1717use pallet_evm_system:: { Account , AccountInfo , Pallet } ;
1818use rlp:: RlpStream ;
@@ -76,13 +76,13 @@ where
7676 }
7777
7878 #[ cfg( feature = "try-runtime" ) ]
79- fn pre_upgrade ( ) -> Result < Vec < u8 > , & ' static str > {
79+ fn pre_upgrade ( ) -> Result < Vec < u8 > , TryRuntimeError > {
8080 let accounts = <Account < R > >:: iter ( ) . collect ( ) ;
8181 Ok ( PreUpgradeState :: < R > { accounts } . encode ( ) )
8282 }
8383
8484 #[ cfg( feature = "try-runtime" ) ]
85- fn post_upgrade ( state : Vec < u8 > ) -> Result < ( ) , & ' static str > {
85+ fn post_upgrade ( state : Vec < u8 > ) -> Result < ( ) , TryRuntimeError > {
8686 let PreUpgradeState :: < R > {
8787 accounts : prev_accounts,
8888 } = Decode :: decode ( & mut state. as_slice ( ) )
You can’t perform that action at this time.
0 commit comments