mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 20:39:35 +00:00
extra id for simple swap
This commit is contained in:
parent
40e4f7de1f
commit
0b72257dc6
2 changed files with 3 additions and 2 deletions
|
@ -191,7 +191,7 @@ class ChangeNowExchangeProvider extends ExchangeProvider {
|
||||||
inputAddress: inputAddress,
|
inputAddress: inputAddress,
|
||||||
amount: expectedSendAmount,
|
amount: expectedSendAmount,
|
||||||
state: state,
|
state: state,
|
||||||
extraId: extraId,
|
extraId: extraId.isNotEmpty ? extraId : null,
|
||||||
expiredAt: expiredAt,
|
expiredAt: expiredAt,
|
||||||
outputTransaction: outputTransaction);
|
outputTransaction: outputTransaction);
|
||||||
}
|
}
|
||||||
|
|
|
@ -106,7 +106,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
|
||||||
final id = responseJSON['id'] as String;
|
final id = responseJSON['id'] as String;
|
||||||
final inputAddress = responseJSON['address_from'] as String;
|
final inputAddress = responseJSON['address_from'] as String;
|
||||||
final settleAddress = responseJSON['user_refund_address'] as String;
|
final settleAddress = responseJSON['user_refund_address'] as String;
|
||||||
|
final extraIdTo = responseJSON['extraIdTo'] as String;
|
||||||
return Trade(
|
return Trade(
|
||||||
id: id,
|
id: id,
|
||||||
provider: description,
|
provider: description,
|
||||||
|
@ -114,6 +114,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
|
||||||
to: _request.to,
|
to: _request.to,
|
||||||
inputAddress: inputAddress,
|
inputAddress: inputAddress,
|
||||||
refundAddress: settleAddress,
|
refundAddress: settleAddress,
|
||||||
|
extraId: extraIdTo,
|
||||||
state: TradeState.created,
|
state: TradeState.created,
|
||||||
amount: _request.amount,
|
amount: _request.amount,
|
||||||
createdAt: DateTime.now(),
|
createdAt: DateTime.now(),
|
||||||
|
|
Loading…
Reference in a new issue