3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-12 10:15:52 +00:00

Fix a couple of static method via instance warnings.

This commit is contained in:
Mike Hearn 2014-07-10 15:33:10 +02:00
parent a750a14edd
commit 682bd035fc

View File

@ -93,7 +93,7 @@ public class DeterministicSeed implements EncryptableItem {
* @param creationTimeSeconds When the seed was originally created, UNIX time.
*/
public DeterministicSeed(List<String> mnemonicCode, String passphrase, long creationTimeSeconds) {
this(getCachedMnemonicCodec().toSeed(mnemonicCode, passphrase), mnemonicCode, creationTimeSeconds);
this(MnemonicCode.toSeed(mnemonicCode, passphrase), mnemonicCode, creationTimeSeconds);
}
/**
@ -125,7 +125,7 @@ public class DeterministicSeed implements EncryptableItem {
// cannot happen
throw new RuntimeException(e);
}
this.seed = getCachedMnemonicCodec().toSeed(mnemonicCode, passphrase);
this.seed = MnemonicCode.toSeed(mnemonicCode, passphrase);
this.encryptedMnemonicCode = null;
this.creationTimeSeconds = creationTimeSeconds;
}