Skip to content

Commit

Permalink
fix block (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Jan 18, 2024
1 parent 13a270d commit 3e1abd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/chopsticks/src/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const configSchema = z.object({
port: z.number({ description: 'Port to listen on' }).default(8000),
endpoint: z.union([z.string(), z.array(z.string())], { description: 'Endpoint to connect to' }).optional(),
block: z
.union([zHash, z.coerce.number(), z.null()], {
.union([z.string(), z.number(), z.null()], {
description: 'Block hash or block number. Default to latest block',
})
.optional(),
Expand Down

0 comments on commit 3e1abd8

Please sign in to comment.