mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
testnet
This commit is contained in:
parent
eaf14c2e8a
commit
0b0774b0b8
1 changed files with 5 additions and 3 deletions
|
@ -178,8 +178,9 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface {
|
|||
|
||||
// find our coins
|
||||
final List<SparkCoin> myCoins = [];
|
||||
for (final data
|
||||
in List<List<String>>.from(anonymitySet["coin"] as List)) {
|
||||
// for (final data
|
||||
// in List<List<String>>.from(anonymitySet["coin"] as List)) {
|
||||
for (final data in anonymitySet["coins"] as List) {
|
||||
if (data.length != 2) {
|
||||
throw Exception("Unexpected serialized coin info found");
|
||||
}
|
||||
|
@ -188,9 +189,10 @@ mixin SparkInterface on Bip39HDWallet, ElectrumXInterface {
|
|||
final txHash = data.last;
|
||||
|
||||
final coin = LibSpark.identifyAndRecoverCoin(
|
||||
serializedCoin,
|
||||
"$serializedCoin",
|
||||
privateKeyHex: privateKeyHex,
|
||||
index: index,
|
||||
isTestNet: true,
|
||||
);
|
||||
|
||||
// its ours
|
||||
|
|
Loading…
Reference in a new issue