Skip to content

Commit 76f8162

Browse files
committed
Bip39TrezorTest fix.
1 parent 5304236 commit 76f8162

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/src/test/java/com/bitsofproof/supernode/api/BIP39Test.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ public void bip39TrezorTest () throws IOException, JSONException, ValidationExce
6464
{
6565
JSONObject testData = readObject (TESTS);
6666
JSONArray english = testData.getJSONArray ("english");
67-
for ( int i = 0; i < testData.length (); ++i )
67+
for ( int i = 0; i < english.length (); ++i )
6868
{
6969
JSONArray test = english.getJSONArray (i);
70-
String m = BIP39.getMnemonic (ByteUtils.fromHex (test.getString (i)));
71-
assertTrue (m.equals (test.getString (i + 1)));
70+
String m = BIP39.getMnemonic(ByteUtils.fromHex(test.getString(0)));
71+
assertTrue (m.equals (test.getString (1)));
7272
}
7373
}
7474

0 commit comments

Comments
 (0)