3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-15 19:55:51 +00:00

WalletAppKit: Remove unnecessary call to KeyChainGroup.Builder.build().

This commit is contained in:
Oscar Guindzberg 2019-04-12 17:33:16 -03:00 committed by Andreas Schildbach
parent 0f5ac332ec
commit e68cc4488d

View File

@ -450,7 +450,7 @@ public class WalletAppKit extends AbstractIdleService {
protected Wallet createWallet() {
KeyChainGroup.Builder kcg = KeyChainGroup.builder(params, structure);
if (restoreFromSeed != null)
kcg.fromSeed(restoreFromSeed, preferredOutputScriptType).build();
kcg.fromSeed(restoreFromSeed, preferredOutputScriptType);
else if (restoreFromKey != null)
kcg.addChain(DeterministicKeyChain.builder().spend(restoreFromKey).outputScriptType(preferredOutputScriptType).build());
else