@@ -71,8 +71,8 @@ pub use wallet_storage::Error;
7171use wallet_storage:: {
7272 DefaultBackend , Store , StoreLocalReadWriteUnlocked , StoreTxRo , StoreTxRw , StoreTxRwUnlocked ,
7373 TransactionRoLocked , TransactionRwLocked , TransactionRwUnlocked , Transactional ,
74- WalletStorageReadLocked , WalletStorageReadUnlocked , WalletStorageReadWriteLocked ,
75- WalletStorageReadWriteUnlocked , WalletStorageWriteLocked , WalletStorageWriteUnlocked ,
74+ WalletStorageReadLocked , WalletStorageReadUnlocked , WalletStorageWriteLocked ,
75+ WalletStorageWriteUnlocked ,
7676} ;
7777use wallet_types:: account_info:: { StandaloneAddressDetails , StandaloneAddresses } ;
7878use wallet_types:: chain_info:: ChainInfo ;
@@ -672,7 +672,7 @@ where
672672
673673 fn reset_wallet_transactions (
674674 chain_config : Arc < ChainConfig > ,
675- db_tx : & mut impl WalletStorageReadWriteLocked ,
675+ db_tx : & mut impl WalletStorageWriteLocked ,
676676 ) -> WalletResult < ( ) > {
677677 db_tx. clear_transactions ( ) ?;
678678 db_tx. clear_addresses ( ) ?;
@@ -703,7 +703,7 @@ where
703703
704704 fn reset_wallet_transactions_and_load (
705705 chain_config : Arc < ChainConfig > ,
706- db_tx : & mut impl WalletStorageReadWriteLocked ,
706+ db_tx : & mut impl WalletStorageWriteLocked ,
707707 signer_provider : & P ,
708708 ) -> WalletResult < BTreeMap < U31 , Account < P :: K > > > {
709709 Self :: reset_wallet_transactions ( chain_config. clone ( ) , db_tx) ?;
@@ -725,7 +725,7 @@ where
725725
726726 fn migrate_next_unused_account (
727727 chain_config : Arc < ChainConfig > ,
728- db_tx : & mut impl WalletStorageReadWriteUnlocked ,
728+ db_tx : & mut impl WalletStorageWriteUnlocked ,
729729 signer_provider : & mut P ,
730730 ) -> Result < ( ) , WalletError > {
731731 let accounts_info = db_tx. get_accounts_info ( ) ?;
@@ -903,7 +903,7 @@ where
903903 fn create_next_unused_account (
904904 next_account_index : U31 ,
905905 chain_config : Arc < ChainConfig > ,
906- db_tx : & mut impl WalletStorageReadWriteUnlocked ,
906+ db_tx : & mut impl WalletStorageWriteUnlocked ,
907907 name : Option < String > ,
908908 signer_provider : & mut P ,
909909 ) -> WalletResult < ( U31 , Account < P :: K > ) > {
0 commit comments