File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -153,14 +153,9 @@ fn wallet__dump_wallet() {
153
153
154
154
#[ test]
155
155
fn wallet__encrypt_wallet ( ) {
156
- let node = Node :: with_wallet ( Wallet :: None , & [ ] ) ;
157
-
158
- // NOTE: Create a new wallet and returns a dedicated client instance for it.
159
- // This client will send RPCs to the `/wallet/test-wallet` endpoint.
160
- let wallet_client = node. create_wallet ( "test-wallet" ) . expect ( "createwallet" ) ;
156
+ let node = Node :: with_wallet ( Wallet :: Default , & [ ] ) ;
161
157
162
- // Use the dedicated client to encrypt the new wallet
163
- let _: EncryptWallet = wallet_client. encrypt_wallet ( "test-passphrase" ) . expect ( "encryptwallet" ) ;
158
+ let _: EncryptWallet = node. client . encrypt_wallet ( "test-passphrase" ) . expect ( "encryptwallet" ) ;
164
159
}
165
160
166
161
#[ test]
You can’t perform that action at this time.
0 commit comments