Skip to content

Commit

Permalink
fix: correct spelling of 'Separated' in agent configuration regex pat…
Browse files Browse the repository at this point in the history
…terns (#5152)

### Description

Fix typo `Seperated` -> `Separated`
<!--
What's included in this PR?
-->

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing
No update test
<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->
  • Loading branch information
tiendn authored Jan 14, 2025
1 parent fd255ef commit d365e55
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions typescript/sdk/src/metadata/agentConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ export const AgentConfigSchema = z.object({
.optional(),
});

const CommaSeperatedChainList = z.string().regex(/^[a-z0-9]+(,[a-z0-9]+)*$/);
const CommaSeperatedDomainList = z.string().regex(/^\d+(,\d+)*$/);
const CommaSeparatedChainList = z.string().regex(/^[a-z0-9]+(,[a-z0-9]+)*$/);
const CommaSeparatedDomainList = z.string().regex(/^\d+(,\d+)*$/);

export enum GasPaymentEnforcementPolicyType {
None = 'none',
Expand Down Expand Up @@ -355,7 +355,7 @@ export const RelayerAgentConfigSchema = AgentConfigSchema.extend({
.min(1)
.optional()
.describe('The path to the relayer database.'),
relayChains: CommaSeperatedChainList.describe(
relayChains: CommaSeparatedChainList.describe(
'Comma separated list of chains to relay messages between.',
),
gasPaymentEnforcement: z
Expand Down Expand Up @@ -383,7 +383,7 @@ export const RelayerAgentConfigSchema = AgentConfigSchema.extend({
transactionGasLimit: ZUWei.optional().describe(
'This is optional. If not specified, any amount of gas will be valid, otherwise this is the max allowed gas in wei to relay a transaction.',
),
skipTransactionGasLimitFor: CommaSeperatedDomainList.optional().describe(
skipTransactionGasLimitFor: CommaSeparatedDomainList.optional().describe(
'Comma separated List of chain names to skip applying the transaction gas limit to.',
),
allowLocalCheckpointSyncers: z
Expand All @@ -404,7 +404,7 @@ export type RelayerConfig = z.infer<typeof RelayerAgentConfigSchema>;

export const ScraperAgentConfigSchema = AgentConfigSchema.extend({
db: z.string().min(1).describe('Database connection string'),
chainsToScrape: CommaSeperatedChainList.describe(
chainsToScrape: CommaSeparatedChainList.describe(
'Comma separated list of chain names to scrape',
),
});
Expand Down

0 comments on commit d365e55

Please sign in to comment.