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),
|
isPending = parseBoolFromString(map['isPending'] as String),
|
||||||
amount = map['amount'] as int,
|
amount = map['amount'] as int,
|
||||||
accountIndex = int.parse(map['accountIndex'] as String),
|
accountIndex = int.parse(map['accountIndex'] as String),
|
||||||
addressIndex = map['addressIndex'] as List<int>,
|
addressIndex = map['addressIndex'] as int,
|
||||||
key = getTxKey((map['hash'] ?? '') as String),
|
key = getTxKey((map['hash'] ?? '') as String),
|
||||||
fee = map['fee'] as int ?? 0;
|
fee = map['fee'] as int ?? 0;
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class MoneroTransactionInfo extends TransactionInfo {
|
||||||
isPending = row.isPending != 0,
|
isPending = row.isPending != 0,
|
||||||
amount = row.getAmount(),
|
amount = row.getAmount(),
|
||||||
accountIndex = row.subaddrAccount,
|
accountIndex = row.subaddrAccount,
|
||||||
addressIndex = row.getSubaddrIndex(),
|
addressIndex = row.subaddrIndex,
|
||||||
key = getTxKey(row.getHash()),
|
key = getTxKey(row.getHash()),
|
||||||
fee = row.fee;
|
fee = row.fee;
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ class MoneroTransactionInfo extends TransactionInfo {
|
||||||
final bool isPending;
|
final bool isPending;
|
||||||
final int amount;
|
final int amount;
|
||||||
final int fee;
|
final int fee;
|
||||||
final List<int> addressIndex;
|
final int addressIndex;
|
||||||
String recipientAddress;
|
String recipientAddress;
|
||||||
String key;
|
String key;
|
||||||
|
|
||||||
|
|
|
@ -66,9 +66,9 @@ abstract class TransactionDetailsViewModelBase with Store {
|
||||||
final accountIndex = tx.accountIndex;
|
final accountIndex = tx.accountIndex;
|
||||||
final addressIndex = tx.addressIndex;
|
final addressIndex = tx.addressIndex;
|
||||||
final _wallet = wallet as MoneroWallet;
|
final _wallet = wallet as MoneroWallet;
|
||||||
|
final address =
|
||||||
for (var index in addressIndex) {
|
_wallet.getTransactionAddress(accountIndex, addressIndex);
|
||||||
final address = _wallet.getTransactionAddress(accountIndex, index);
|
if (address?.isNotEmpty ?? false) {
|
||||||
_items.add(
|
_items.add(
|
||||||
StandartListItem(
|
StandartListItem(
|
||||||
title: S.current.transaction_details_recipient_address,
|
title: S.current.transaction_details_recipient_address,
|
||||||
|
|
Loading…
Reference in a new issue