From e77cf8965192fd5b1929f4f23a7d16ce08270279 Mon Sep 17 00:00:00 2001 From: M Date: Thu, 18 Mar 2021 11:15:07 +0200 Subject: [PATCH] Changed api to prod mode. --- lib/view_model/dashboard/dashboard_view_model.dart | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/view_model/dashboard/dashboard_view_model.dart b/lib/view_model/dashboard/dashboard_view_model.dart index 786984bdd..f467d3d06 100644 --- a/lib/view_model/dashboard/dashboard_view_model.dart +++ b/lib/view_model/dashboard/dashboard_view_model.dart @@ -333,16 +333,15 @@ abstract class DashboardViewModelBase with Store { Future getWyreUrl() async { final timestamp = DateTime.now().millisecondsSinceEpoch.toString(); - final url = 'https://api.testwyre.com/v3/orders/reserve' + '?timestamp=' + + final url = 'https://api.sendwyre.com/v3/orders/reserve' + '?timestamp=' + timestamp; - final apiKey = secrets.wyreApiKey; final secretKey = secrets.wyreSecretKey; final accountId = secrets.wyreAccountId; final body = { - //'destCurrency' : walletTypeToCryptoCurrency(type).title, - //'dest' : walletTypeToString(type).toLowerCase() + ':' + address, + 'destCurrency' : walletTypeToCryptoCurrency(type).title, + 'dest' : walletTypeToString(type).toLowerCase() + ':' + address, 'referrerAccountId' : accountId, - //'lockFields' : ['destCurrency', 'dest'] + 'lockFields' : ['destCurrency', 'dest'] }; final response = await post(url,