This commit is contained in:
sneurlax 2023-12-05 00:00:58 -06:00
parent eaf14c2e8a
commit 0b0774b0b8

View file

@ -178,8 +178,9 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface {
// find our coins // find our coins
final List<SparkCoin> myCoins = []; final List<SparkCoin> myCoins = [];
for (final data // for (final data
in List<List<String>>.from(anonymitySet["coin"] as List)) { // in List<List<String>>.from(anonymitySet["coin"] as List)) {
for (final data in anonymitySet["coins"] as List) {
if (data.length != 2) { if (data.length != 2) {
throw Exception("Unexpected serialized coin info found"); throw Exception("Unexpected serialized coin info found");
} }
@ -188,9 +189,10 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface {
final txHash = data.last; final txHash = data.last;
final coin = LibSpark.identifyAndRecoverCoin( final coin = LibSpark.identifyAndRecoverCoin(
serializedCoin, "$serializedCoin",
privateKeyHex: privateKeyHex, privateKeyHex: privateKeyHex,
index: index, index: index,
isTestNet: true,
); );
// its ours // its ours