mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-06-28 12:29:51 +00:00
move fiat api key to headers [skip ci]
This commit is contained in:
parent
8b2016a1ab
commit
2854285865
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,6 @@ Future<double> _fetchPrice(String crypto, String fiat, bool torOnly) async {
|
|||
'interval_count': '1',
|
||||
'base': crypto.split(".").first,
|
||||
'quote': fiat,
|
||||
'key': secrets.fiatApiKey,
|
||||
};
|
||||
|
||||
num price = 0.0;
|
||||
|
@ -27,6 +26,9 @@ Future<double> _fetchPrice(String crypto, String fiat, bool torOnly) async {
|
|||
final response = await ProxyWrapper().get(
|
||||
onionUri: onionUri,
|
||||
clearnetUri: torOnly ? onionUri : clearnetUri,
|
||||
headers: {
|
||||
"x-api-key": secrets.fiatApiKey,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue