id coins tweak

This commit is contained in:
Julian 2023-12-14 20:51:09 -06:00
parent a25c004768
commit 69860843e0

View file

@ -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,
);