mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-10 04:44:43 +00:00
update extra id in find trade logic
This commit is contained in:
parent
5131d41028
commit
75dd44a11e
1 changed files with 2 additions and 0 deletions
|
@ -181,6 +181,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
|
||||||
final to = CryptoCurrency.fromString(toCurrency);
|
final to = CryptoCurrency.fromString(toCurrency);
|
||||||
final inputAddress = responseJSON['address_from'] as String;
|
final inputAddress = responseJSON['address_from'] as String;
|
||||||
final expectedSendAmount = responseJSON['expected_amount'].toString();
|
final expectedSendAmount = responseJSON['expected_amount'].toString();
|
||||||
|
final extraIdTo = responseJSON['extra_id_from'] as String;
|
||||||
final status = responseJSON['status'] as String;
|
final status = responseJSON['status'] as String;
|
||||||
final state = TradeState.deserialize(raw: status);
|
final state = TradeState.deserialize(raw: status);
|
||||||
|
|
||||||
|
@ -188,6 +189,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
|
||||||
id: id,
|
id: id,
|
||||||
from: from,
|
from: from,
|
||||||
to: to,
|
to: to,
|
||||||
|
extraId: extraIdTo,
|
||||||
provider: description,
|
provider: description,
|
||||||
inputAddress: inputAddress,
|
inputAddress: inputAddress,
|
||||||
amount: expectedSendAmount,
|
amount: expectedSendAmount,
|
||||||
|
|
Loading…
Reference in a new issue