mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
CAKE-297 | fixed addressIndex
This commit is contained in:
@@ -21,7 +21,7 @@ class MoneroTransactionInfo extends TransactionInfo {
|
||||
isPending = parseBoolFromString(map['isPending'] as String),
|
||||
amount = map['amount'] as int,
|
||||
accountIndex = int.parse(map['accountIndex'] as String),
|
||||
addressIndex = map['addressIndex'] as List<int>,
|
||||
addressIndex = map['addressIndex'] as int,
|
||||
key = getTxKey((map['hash'] ?? '') as String),
|
||||
fee = map['fee'] as int ?? 0;
|
||||
|
||||
@@ -34,7 +34,7 @@ class MoneroTransactionInfo extends TransactionInfo {
|
||||
isPending = row.isPending != 0,
|
||||
amount = row.getAmount(),
|
||||
accountIndex = row.subaddrAccount,
|
||||
addressIndex = row.getSubaddrIndex(),
|
||||
addressIndex = row.subaddrIndex,
|
||||
key = getTxKey(row.getHash()),
|
||||
fee = row.fee;
|
||||
|
||||
@@ -46,7 +46,7 @@ class MoneroTransactionInfo extends TransactionInfo {
|
||||
final bool isPending;
|
||||
final int amount;
|
||||
final int fee;
|
||||
final List<int> addressIndex;
|
||||
final int addressIndex;
|
||||
String recipientAddress;
|
||||
String key;
|
||||
|
||||
|
||||
@@ -66,9 +66,9 @@ abstract class TransactionDetailsViewModelBase with Store {
|
||||
final accountIndex = tx.accountIndex;
|
||||
final addressIndex = tx.addressIndex;
|
||||
final _wallet = wallet as MoneroWallet;
|
||||
|
||||
for (var index in addressIndex) {
|
||||
final address = _wallet.getTransactionAddress(accountIndex, index);
|
||||
final address =
|
||||
_wallet.getTransactionAddress(accountIndex, addressIndex);
|
||||
if (address?.isNotEmpty ?? false) {
|
||||
_items.add(
|
||||
StandartListItem(
|
||||
title: S.current.transaction_details_recipient_address,
|
||||
|
||||
Reference in New Issue
Block a user