Skip to content

Commit

Permalink
fix: allowedContracts should be optional when creating relayer (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven authored Dec 21, 2023
1 parent 22efd87 commit 3f8d9bb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/server/routes/relayer/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ const BodySchema = Type.Object({
description:
"The address of the backend wallet to use for relaying transactions.",
}),
allowedContracts: Type.Array(
Type.String({
minLength: 42,
maxLength: 42,
}),
allowedContracts: Type.Optional(
Type.Array(
Type.String({
minLength: 42,
maxLength: 42,
}),
),
),

allowedForwarders: Type.Optional(
Type.Array(
Type.String({
Expand Down

0 comments on commit 3f8d9bb

Please sign in to comment.