Skip to content

Commit

Permalink
chore: fix some typos in comment
Browse files Browse the repository at this point in the history
Signed-off-by: luchenhan <hanluchen@aliyun.com>
  • Loading branch information
luchenhan committed Jan 4, 2025
1 parent a84b83b commit 4f9026e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/indexer-agent/src/commands/common-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function injectCommonStartupOptions(argv: Argv): Argv {
})
.check(argv => {
// Unset arguments set to empty strings.
// This can happen when users set their options as enviroment variables and don't
// This can happen when users set their options as environment variables and don't
// assign any value to them.
//
// For example:
Expand All @@ -154,7 +154,7 @@ export function injectCommonStartupOptions(argv: Argv): Argv {
// export INDEXER_AGENT_OFFCHAIN_SUBGRAPHS=
// ```
//
// In NodeJs, those enviroment variables will be set as an empty string instead of
// In NodeJs, those environment variables will be set as an empty string instead of
// being undefined, which can cause parse errors when the Agent is building a
// NetworkSpecification.
for (const [key, value] of Object.entries(argv)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-agent/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const start = {
coordinates: string | [string, string],
): [number, number] {
if (typeof coordinates === 'string') {
// When this value is set in an enviromnent variable, yarns passes
// When this value is set in an environment variable, yarns passes
// it as a single string.

// Yargs should have passed 2 arguments to this functions, so we
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-cli/src/commands/indexer/actions/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ ${chalk.bold(
${chalk.dim('Options:')}
-h, --help Show usage informatio
-h, --help Show usage information
-n, --network <STRING> [Required] The protocol network for this action (mainnet, arbitrum-one, sepolia, arbitrum-sepolia)
-o, --output table|json|yaml Choose the output format: table (default), JSON, or YAML
-s, --source <STRING> Specify the source of the action decision
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-cli/src/commands/indexer/rules/get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module.exports = {
} else {
if (!protocolNetwork) {
throw Error(
'The --network option must be used when quering for a single Indexing Rule',
'The --network option must be used when querying for a single Indexing Rule',
)
}
const ruleIdentifier = { identifier, protocolNetwork }
Expand Down
2 changes: 1 addition & 1 deletion packages/indexer-common/src/subgraphs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ export class SubgraphFreshnessChecker {
return subgraphQueryResult
}

// Checks if the query result has the expecte
// Checks if the query result has the expected
// eslint-disable-next-line @typescript-eslint/no-explicit-any
checkMalformedQueryResult(subgraphQueryResult: any): string | undefined {
if (!subgraphQueryResult) {
Expand Down

0 comments on commit 4f9026e

Please sign in to comment.