File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
core/lib/external_price_api/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub struct CoinGeckoPriceAPIClient {
1717
1818const DEFAULT_COINGECKO_API_URL : & str = "https://pro-api.coingecko.com" ;
1919const COINGECKO_AUTH_HEADER : & str = "x-cg-pro-api-key" ;
20- const USER_AGENT_HEADER : & str = "User-Agent " ;
20+ const USER_AGENT_HEADER : & str = "user-agent " ;
2121const USER_AGENT_VALUE : & str = "zksync-era-node/0.1 (https://github.com/matter-labs/zksync-era)" ;
2222const ETH_ID : & str = "eth" ;
2323const ZKSYNC_ID : & str = "zksync" ;
@@ -176,6 +176,7 @@ mod test {
176176
177177 when = when. query_param ( "contract_addresses" , address. clone ( ) ) ;
178178 when = when. query_param ( "vs_currencies" , ETH_ID ) ;
179+ when = when. header ( USER_AGENT_HEADER , USER_AGENT_VALUE ) ;
179180 api_key. map ( |key| when. header ( COINGECKO_AUTH_HEADER , key) ) ;
180181
181182 if let Some ( p) = price {
You can’t perform that action at this time.
0 commit comments