mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-12-23 11:59:30 +00:00
add updateOrder stub
can't access ref without more work, moving on
This commit is contained in:
parent
64da385d29
commit
86c89152f5
1 changed files with 12 additions and 1 deletions
|
@ -29,7 +29,18 @@ class BuyWarningPopup extends StatelessWidget {
|
|||
SimplexOrder? order;
|
||||
|
||||
Future<BuyResponse<SimplexOrder>> newOrder(SimplexQuote quote) async {
|
||||
return SimplexAPI.instance.newOrder(quote);
|
||||
final response = await SimplexAPI.instance.newOrder(quote);
|
||||
|
||||
// if (response.value != null) {
|
||||
// ref.read(simplexProvider).updateOrder(response.value!);
|
||||
// } else {
|
||||
// Logging.instance.log(
|
||||
// "_loadQuote: $response",
|
||||
// level: LogLevel.Warning,
|
||||
// );
|
||||
// }
|
||||
|
||||
return response;
|
||||
}
|
||||
|
||||
Future<BuyResponse<bool>> redirect(SimplexOrder order) async {
|
||||
|
|
Loading…
Reference in a new issue