mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
remove unnecessary prints
This commit is contained in:
parent
824b3bb9a7
commit
290087c2d5
1 changed files with 1 additions and 6 deletions
|
@ -123,10 +123,7 @@ class SimplexAPI {
|
||||||
List<Crypto> cryptos = [];
|
List<Crypto> cryptos = [];
|
||||||
List<Fiat> fiats = [];
|
List<Fiat> fiats = [];
|
||||||
|
|
||||||
print(jsonArray);
|
|
||||||
|
|
||||||
for (final fiat in jsonArray as List) {
|
for (final fiat in jsonArray as List) {
|
||||||
print(fiat);
|
|
||||||
fiats.add(Fiat.fromJson({
|
fiats.add(Fiat.fromJson({
|
||||||
'ticker': "${fiat['ticker_symbol']}",
|
'ticker': "${fiat['ticker_symbol']}",
|
||||||
'name': "${fiat['ticker_symbol']}",
|
'name': "${fiat['ticker_symbol']}",
|
||||||
|
@ -244,7 +241,7 @@ class SimplexAPI {
|
||||||
throw Exception('newOrder exception: statusCode= ${res.statusCode}');
|
throw Exception('newOrder exception: statusCode= ${res.statusCode}');
|
||||||
}
|
}
|
||||||
final jsonArray = jsonDecode(res.body); // TODO check if valid json
|
final jsonArray = jsonDecode(res.body); // TODO check if valid json
|
||||||
print(jsonArray);
|
|
||||||
SimplexOrder _order = SimplexOrder(
|
SimplexOrder _order = SimplexOrder(
|
||||||
quote: quote,
|
quote: quote,
|
||||||
paymentId: "${jsonArray['paymentId']}",
|
paymentId: "${jsonArray['paymentId']}",
|
||||||
|
@ -272,8 +269,6 @@ class SimplexAPI {
|
||||||
mode: LaunchMode.externalApplication,
|
mode: LaunchMode.externalApplication,
|
||||||
);
|
);
|
||||||
|
|
||||||
print(status);
|
|
||||||
|
|
||||||
return BuyResponse(value: status);
|
return BuyResponse(value: status);
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
Logging.instance.log("newOrder exception: $e\n$s", level: LogLevel.Error);
|
Logging.instance.log("newOrder exception: $e\n$s", level: LogLevel.Error);
|
||||||
|
|
Loading…
Reference in a new issue