From bcb92ae63831c281dee70124484b35db7e831b80 Mon Sep 17 00:00:00 2001 From: ryleedavis Date: Mon, 11 Sep 2023 14:38:40 -0600 Subject: [PATCH] price api use tor HTTP --- lib/services/price_service.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/services/price_service.dart b/lib/services/price_service.dart index 46c0ff85a..8a0b2741a 100644 --- a/lib/services/price_service.dart +++ b/lib/services/price_service.dart @@ -13,6 +13,7 @@ import 'dart:async'; import 'package:decimal/decimal.dart'; import 'package:flutter/foundation.dart'; import 'package:http/http.dart'; +import 'package:stackwallet/networking/http.dart'; import 'package:stackwallet/services/price.dart'; import 'package:stackwallet/utilities/enums/coin_enum.dart'; import 'package:tuple/tuple.dart'; @@ -29,7 +30,7 @@ class PriceService extends ChangeNotifier { final Map> _cachedTokenPrices = {}; - final _priceAPI = PriceAPI(Client()); + final _priceAPI = PriceAPI(HTTP()); Tuple2 getPrice(Coin coin) => _cachedPrices[coin]!;