mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 09:47:37 +00:00
trocador debug prints
This commit is contained in:
parent
33ec3f5a25
commit
d14fd88e01
1 changed files with 4 additions and 3 deletions
|
@ -1,5 +1,6 @@
|
|||
import 'dart:convert';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter_native_splash/cli_commands.dart';
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:stackwallet/exceptions/exchange/exchange_exception.dart';
|
||||
|
@ -34,7 +35,7 @@ abstract class TrocadorAPI {
|
|||
static Future<dynamic> _makeGetRequest(Uri uri) async {
|
||||
int code = -1;
|
||||
try {
|
||||
// print("URI: $uri");
|
||||
debugPrint("URI: $uri");
|
||||
final response = await http.get(
|
||||
uri,
|
||||
headers: {'Content-Type': 'application/json'},
|
||||
|
@ -42,8 +43,8 @@ abstract class TrocadorAPI {
|
|||
|
||||
code = response.statusCode;
|
||||
|
||||
// print("CODE: $code");
|
||||
// print("BODY: ${response.body}");
|
||||
debugPrint("CODE: $code");
|
||||
debugPrint("BODY: ${response.body}");
|
||||
|
||||
final json = jsonDecode(response.body);
|
||||
|
||||
|
|
Loading…
Reference in a new issue