mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-07 14:54:15 +00:00
Fix a casting bug in WalletAppKit. Thanks to Kalpesh Parmar.
This commit is contained in:
parent
4df59adeb9
commit
d9fa9e4b68
@ -224,8 +224,9 @@ public class WalletAppKit extends AbstractIdleService {
|
||||
try {
|
||||
List<WalletExtension> extensions = provideWalletExtensions();
|
||||
vWallet = new Wallet(params);
|
||||
WalletExtension[] extArray = extensions.toArray(new WalletExtension[extensions.size()]);
|
||||
Protos.Wallet proto = WalletProtobufSerializer.parseToProto(walletStream);
|
||||
new WalletProtobufSerializer().readWallet(params, (WalletExtension[]) extensions.toArray(), proto);
|
||||
new WalletProtobufSerializer().readWallet(params, extArray, proto);
|
||||
if (shouldReplayWallet)
|
||||
vWallet.clearTransactions(0);
|
||||
} finally {
|
||||
|
Loading…
x
Reference in New Issue
Block a user