update extra id in find trade logic

This commit is contained in:
Godwin Asuquo 2022-10-11 17:26:31 +03:00
parent 5131d41028
commit 75dd44a11e

View file

@ -181,6 +181,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
final to = CryptoCurrency.fromString(toCurrency);
final inputAddress = responseJSON['address_from'] as String;
final expectedSendAmount = responseJSON['expected_amount'].toString();
final extraIdTo = responseJSON['extra_id_from'] as String;
final status = responseJSON['status'] as String;
final state = TradeState.deserialize(raw: status);
@ -188,6 +189,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
id: id,
from: from,
to: to,
extraId: extraIdTo,
provider: description,
inputAddress: inputAddress,
amount: expectedSendAmount,