Skip to content

Commit

Permalink
encrypted wallet objectMapper format bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skywills committed Oct 7, 2020
1 parent 90c3f52 commit 23af5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/com/mxw/wallet/WalletTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public void testDecryptJson() throws CipherException {
@Test
public void testEncryptWithoutMnemonic() throws CipherException, JsonProcessingException {
Wallet wallet = new Wallet(TestConfig.PRIVATE_KEY_STRING);
WalletFile walletFile = wallet.EncryptWallet(TestConfig.ENCRYPT_PASSWORD);
String json = wallet.EncryptWalletJson(TestConfig.ENCRYPT_PASSWORD);
WalletFile walletFile = wallet.encryptWallet(TestConfig.ENCRYPT_PASSWORD);
String json = wallet.encryptWalletJson(TestConfig.ENCRYPT_PASSWORD);
SigningKey signingKey = SecretStorage.decryptToSignKey(TestConfig.ENCRYPT_PASSWORD, walletFile);
Assert.assertEquals(wallet.getSigningKey(), signingKey);
Assert.assertEquals(wallet.getPrivateKey(), signingKey.getPrivateKey());
Expand Down

0 comments on commit 23af5a3

Please sign in to comment.