Skip to content

Commit 29a4a50

Browse files
committed
Implement encryptwallet method and test
1 parent 7e50e41 commit 29a4a50

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

integration_test/tests/wallet.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,9 @@ fn wallet__dump_wallet() {
153153

154154
#[test]
155155
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, &[]);
161157

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");
164159
}
165160

166161
#[test]

0 commit comments

Comments
 (0)