Skip to content
Snippets Groups Projects
Commit 59347448 authored by poka's avatar poka
Browse files

Refix transcation history amount parsing

parent aa2c6671
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@ class HistoryProvider with ChangeNotifier {
}
// Boris: JE6mkuzSpT3ePciCPRTpuMT9fqPUVVLJz2618d33p7tn
// Matograine portefeuille: 9p5nHsES6xujFR7pw2yGy4PLKKHgWsMvsDHaHF64Uj25
List parseHistory(txs, _pubkey) {
var transBC = [];
......@@ -76,10 +77,14 @@ class HistoryProvider with ChangeNotifier {
var direction = trans['direction'];
final transaction = trans['node'];
var output;
for (String line in transaction['outputs']) {
if (line.contains(_pubkey)) {
output = line;
if (direction == "RECEIVED") {
for (String line in transaction['outputs']) {
if (line.contains(_pubkey)) {
output = line;
}
}
} else {
output = transaction['outputs'][0];
}
if (output == null) {
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment