@@ -70,7 +70,8 @@ pub use wallet_storage::Error;
7070use wallet_storage:: {
7171 DefaultBackend , Store , StoreTxRo , StoreTxRw , StoreTxRwUnlocked , TransactionRoLocked ,
7272 TransactionRwLocked , TransactionRwUnlocked , Transactional , WalletStorageReadLocked ,
73- WalletStorageReadUnlocked , WalletStorageWriteLocked , WalletStorageWriteUnlocked ,
73+ WalletStorageReadUnlocked , WalletStorageReadWriteLocked , WalletStorageReadWriteUnlocked ,
74+ WalletStorageWriteLocked , WalletStorageWriteUnlocked ,
7475} ;
7576use wallet_types:: account_info:: { StandaloneAddressDetails , StandaloneAddresses } ;
7677use wallet_types:: chain_info:: ChainInfo ;
@@ -670,7 +671,7 @@ where
670671
671672 fn reset_wallet_transactions (
672673 chain_config : Arc < ChainConfig > ,
673- db_tx : & mut impl WalletStorageWriteLocked ,
674+ db_tx : & mut impl WalletStorageReadWriteLocked ,
674675 ) -> WalletResult < ( ) > {
675676 db_tx. clear_transactions ( ) ?;
676677 db_tx. clear_addresses ( ) ?;
@@ -701,7 +702,7 @@ where
701702
702703 fn reset_wallet_transactions_and_load (
703704 chain_config : Arc < ChainConfig > ,
704- db_tx : & mut impl WalletStorageWriteLocked ,
705+ db_tx : & mut impl WalletStorageReadWriteLocked ,
705706 signer_provider : & P ,
706707 ) -> WalletResult < BTreeMap < U31 , Account < P :: K > > > {
707708 Self :: reset_wallet_transactions ( chain_config. clone ( ) , db_tx) ?;
@@ -723,7 +724,7 @@ where
723724
724725 fn migrate_next_unused_account (
725726 chain_config : Arc < ChainConfig > ,
726- db_tx : & mut impl WalletStorageWriteUnlocked ,
727+ db_tx : & mut impl WalletStorageReadWriteUnlocked ,
727728 signer_provider : & mut P ,
728729 ) -> Result < ( ) , WalletError > {
729730 let accounts_info = db_tx. get_accounts_info ( ) ?;
@@ -901,7 +902,7 @@ where
901902 fn create_next_unused_account (
902903 next_account_index : U31 ,
903904 chain_config : Arc < ChainConfig > ,
904- db_tx : & mut impl WalletStorageWriteUnlocked ,
905+ db_tx : & mut impl WalletStorageReadWriteUnlocked ,
905906 name : Option < String > ,
906907 signer_provider : & mut P ,
907908 ) -> WalletResult < ( U31 , Account < P :: K > ) > {
0 commit comments