mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-09 12:29:31 +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,
|
||||
amount: expectedSendAmount,
|
||||
state: state,
|
||||
extraId: extraId,
|
||||
extraId: extraId.isNotEmpty ? extraId : null,
|
||||
expiredAt: expiredAt,
|
||||
outputTransaction: outputTransaction);
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
|
|||
final id = responseJSON['id'] as String;
|
||||
final inputAddress = responseJSON['address_from'] as String;
|
||||
final settleAddress = responseJSON['user_refund_address'] as String;
|
||||
|
||||
final extraIdTo = responseJSON['extraIdTo'] as String;
|
||||
return Trade(
|
||||
id: id,
|
||||
provider: description,
|
||||
|
@ -114,6 +114,7 @@ class SimpleSwapExchangeProvider extends ExchangeProvider {
|
|||
to: _request.to,
|
||||
inputAddress: inputAddress,
|
||||
refundAddress: settleAddress,
|
||||
extraId: extraIdTo,
|
||||
state: TradeState.created,
|
||||
amount: _request.amount,
|
||||
createdAt: DateTime.now(),
|
||||
|
|
Loading…
Reference in a new issue