Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shiny-kiwis-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"abitype": patch
---

EIP712 - `chainId` should support `uint256` values
2 changes: 1 addition & 1 deletion packages/abitype/src/abi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export type Abi = readonly (
// Typed Data Types

export type TypedDataDomain = {
chainId?: number | undefined
chainId?: number | bigint | string | undefined
name?: string | undefined
salt?: ResolvedRegister['bytesType']['outputs'] | undefined
verifyingContract?: Address | undefined
Expand Down
2 changes: 1 addition & 1 deletion packages/abitype/src/zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export const Abi = z
// Typed Data Types

export const TypedDataDomain = z.object({
chainId: z.number().optional(),
chainId: z.union([z.number(), z.string(), z.bigint()]).optional(),
name: Identifier.optional(),
salt: z.string().optional(),
verifyingContract: Address.optional(),
Expand Down