Skip to content

Commit

Permalink
Fix the EDR Network user config validation
Browse files Browse the repository at this point in the history
  • Loading branch information
alcuadrado committed Oct 29, 2024
1 parent de3a063 commit 7f3eaa9
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,12 +193,12 @@ const edrNetworkUserConfigAccountsSchema = conditionalUnionType(

const edrNetworkUserConfigSchema = z.object({
type: z.literal("edr"),
chainId: z.number().int(),
chainId: z.number().int().optional(),
chainType: z.optional(chainTypeSchema),
from: z.optional(z.string()),
gas: userGasSchema,
gasMultiplier: z.number(),
gasPrice: userGasSchema,
from: z.optional(z.string()).optional(),
gas: userGasSchema.optional(),
gasMultiplier: z.number().optional(),
gasPrice: userGasSchema.optional(),
accounts: z.optional(edrNetworkUserConfigAccountsSchema),
});

Expand Down

0 comments on commit 7f3eaa9

Please sign in to comment.