Fix for transaction details for electrum transactions

This commit is contained in:
M 2022-02-03 14:37:32 +02:00
parent c1a830ea27
commit 01735a998c

View file

@ -32,11 +32,11 @@ abstract class TransactionDetailsViewModelBase with Store {
final dateFormat = DateFormatter.withCurrentLocal(); final dateFormat = DateFormatter.withCurrentLocal();
final tx = transactionInfo; final tx = transactionInfo;
final key = tx.additionalInfo['key'] as String;
final accountIndex = tx.additionalInfo['accountIndex'] as int;
final addressIndex = tx.additionalInfo['addressIndex'] as int;
if (wallet.type == WalletType.monero) { if (wallet.type == WalletType.monero) {
final key = tx.additionalInfo['key'] as String;
final accountIndex = tx.additionalInfo['accountIndex'] as int;
final addressIndex = tx.additionalInfo['addressIndex'] as int;
final _items = [ final _items = [
StandartListItem( StandartListItem(
title: S.current.transaction_details_transaction_id, value: tx.id), title: S.current.transaction_details_transaction_id, value: tx.id),