Skip to content

Commit 3f8d9bb

Browse files
authored
fix: allowedContracts should be optional when creating relayer (#357)
1 parent 22efd87 commit 3f8d9bb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/server/routes/relayer/create.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ const BodySchema = Type.Object({
1111
description:
1212
"The address of the backend wallet to use for relaying transactions.",
1313
}),
14-
allowedContracts: Type.Array(
15-
Type.String({
16-
minLength: 42,
17-
maxLength: 42,
18-
}),
14+
allowedContracts: Type.Optional(
15+
Type.Array(
16+
Type.String({
17+
minLength: 42,
18+
maxLength: 42,
19+
}),
20+
),
1921
),
20-
2122
allowedForwarders: Type.Optional(
2223
Type.Array(
2324
Type.String({

0 commit comments

Comments
 (0)