mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-23 03:59:23 +00:00
CAKE-297 | fixed addressIndex
This commit is contained in:
parent
7bbd530319
commit
8567f20809
2 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue