Skip to content

Commit

Permalink
fix warning messages (#2128)
Browse files Browse the repository at this point in the history
  • Loading branch information
portuu3 authored Jun 10, 2024
1 parent 5ba1aeb commit 13ee19f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ def get_data_from_subgraph(network: dict, query: str, params: dict = None):
SUBGRAPH_API_KEY_PLACEHOLDER, subgraph_api_key
)
else:
logger.warning("Warning: SUBGRAPH_API_KEY is not provided")
logger.warning(
"Warning: SUBGRAPH_API_KEY is not provided. It might cause issues with the subgraph."
)
subgraph_url = network["subgraph_url"]

request = requests.post(subgraph_url, json={"query": query, "variables": params})
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/typescript/human-protocol-sdk/src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,4 @@ export class InvalidEthereumAddressError extends Error {
export const ErrorInvalidHash = new Error('Invalid hash');

export const WarnSubgraphApiKeyNotProvided =
'"subgraphApiKey" is not being provided. It might cause issues with the subgraph.';
'"SUBGRAPH_API_KEY" is not being provided. It might cause issues with the subgraph.';

0 comments on commit 13ee19f

Please sign in to comment.