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
|
// 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
|
||||||
|
|
Loading…
Reference in a new issue