mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-16 17:27:39 +00:00
id coins tweak
This commit is contained in:
parent
a25c004768
commit
69860843e0
1 changed files with 4 additions and 3 deletions
|
@ -447,17 +447,18 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface {
|
|||
for (final dynData in anonymitySet["coins"] as List) {
|
||||
final data = List<String>.from(dynData as List);
|
||||
|
||||
if (data.length != 2) {
|
||||
if (data.length != 3) {
|
||||
throw Exception("Unexpected serialized coin info found");
|
||||
}
|
||||
|
||||
final serializedCoin = data.first;
|
||||
final txHash = base64ToReverseHex(data.last);
|
||||
final serializedCoin = data[0];
|
||||
final txHash = base64ToReverseHex(data[1]);
|
||||
|
||||
final coin = LibSpark.identifyAndRecoverCoin(
|
||||
serializedCoin,
|
||||
privateKeyHex: privateKeyHex,
|
||||
index: index,
|
||||
context: base64Decode(data[2]),
|
||||
isTestNet: cryptoCurrency.network == CryptoCurrencyNetwork.test,
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue