Skip to content

Commit 4c1c31b

Browse files
committed
Remove 0x validation from ERC8004 signing key
1 parent 63b0075 commit 4c1c31b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/CreateApp/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const erc8004Schema = z.object({
153153
.max(1000, {
154154
message: 'Pinata JWT must be less than 1000 characters.',
155155
}),
156-
ERC8004_SIGNING_KEY: z.string().regex(/^0x[a-fA-F0-9]{64}$/, {
156+
ERC8004_SIGNING_KEY: z.string().regex(/^[a-fA-F0-9]{64}$/, {
157157
message: 'Please enter a valid Ethereum private key (64 hexadecimal characters).',
158158
}),
159159
ERC8004_AGENT_NAME: z.string().optional(),

0 commit comments

Comments
 (0)