mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 14:40:40 +01:00
DumpedPrivateKeyTest: properly use NetworkParameters.getDumpedPrivateKeyHeader() accessor
This commit is contained in:
parent
a6e5c88ce8
commit
4f17e006b2
1 changed files with 2 additions and 2 deletions
|
@ -94,13 +94,13 @@ public class DumpedPrivateKeyTest {
|
|||
|
||||
@Test(expected = AddressFormatException.InvalidDataLength.class)
|
||||
public void fromBase58_tooShort() {
|
||||
String base58 = Base58.encodeChecked(MAINNET.dumpedPrivateKeyHeader, new byte[31]);
|
||||
String base58 = Base58.encodeChecked(MAINNET.getDumpedPrivateKeyHeader(), new byte[31]);
|
||||
DumpedPrivateKey.fromBase58(null, base58);
|
||||
}
|
||||
|
||||
@Test(expected = AddressFormatException.InvalidDataLength.class)
|
||||
public void fromBase58_tooLong() {
|
||||
String base58 = Base58.encodeChecked(MAINNET.dumpedPrivateKeyHeader, new byte[34]);
|
||||
String base58 = Base58.encodeChecked(MAINNET.getDumpedPrivateKeyHeader(), new byte[34]);
|
||||
DumpedPrivateKey.fromBase58(null, base58);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue