Refix transcation history amount parsing
This commit is contained in:
parent
aa2c6671ee
commit
5934744884
|
@ -64,6 +64,7 @@ class HistoryProvider with ChangeNotifier {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Boris: JE6mkuzSpT3ePciCPRTpuMT9fqPUVVLJz2618d33p7tn
|
// Boris: JE6mkuzSpT3ePciCPRTpuMT9fqPUVVLJz2618d33p7tn
|
||||||
|
// Matograine portefeuille: 9p5nHsES6xujFR7pw2yGy4PLKKHgWsMvsDHaHF64Uj25
|
||||||
|
|
||||||
List parseHistory(txs, _pubkey) {
|
List parseHistory(txs, _pubkey) {
|
||||||
var transBC = [];
|
var transBC = [];
|
||||||
|
@ -76,10 +77,14 @@ class HistoryProvider with ChangeNotifier {
|
||||||
var direction = trans['direction'];
|
var direction = trans['direction'];
|
||||||
final transaction = trans['node'];
|
final transaction = trans['node'];
|
||||||
var output;
|
var output;
|
||||||
for (String line in transaction['outputs']) {
|
if (direction == "RECEIVED") {
|
||||||
if (line.contains(_pubkey)) {
|
for (String line in transaction['outputs']) {
|
||||||
output = line;
|
if (line.contains(_pubkey)) {
|
||||||
|
output = line;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
output = transaction['outputs'][0];
|
||||||
}
|
}
|
||||||
if (output == null) {
|
if (output == null) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue