CW- 463 Fix transaction receive address not showing for Eth/Erc20 (#1076)

* Fix transaction receive address not showing for Eth/Erc20 [skip ci]

* Fix transaction receive address for Eth/Erc20
This commit is contained in:
Omar Hatem
2023-09-14 22:12:41 +03:00
committed by GitHub
parent 4bcf6162f1
commit 4c9c6a1eae
5 changed files with 9 additions and 1 deletions
@@ -69,7 +69,7 @@ class SideShiftExchangeProvider extends ExchangeProvider {
final depositNetwork = _networkFor(from);
final settleNetwork = _networkFor(to);
final url = "$apiBaseUrl$rangePath/$fromCurrency-$depositNetwork/$toCurrency-$settleNetwork";
final url = "$apiBaseUrl$rangePath/$fromCurrency-$depositNetwork/$toCurrency-$settleNetwork?amount=$amount";
final uri = Uri.parse(url);
final response = await get(uri);
@@ -215,6 +215,8 @@ abstract class TransactionDetailsViewModelBase with Store {
StandartListItem(title: S.current.transaction_details_amount, value: tx.amountFormatted()),
if (tx.feeFormatted()?.isNotEmpty ?? false)
StandartListItem(title: S.current.transaction_details_fee, value: tx.feeFormatted()!),
if (showRecipientAddress && tx.to != null)
StandartListItem(title: S.current.transaction_details_recipient_address, value: tx.to!),
];
items.addAll(_items);