Skip to content

Commit

Permalink
Update address field type
Browse files Browse the repository at this point in the history
  • Loading branch information
falvaradorodriguez committed Jan 16, 2025
1 parent 1eaed71 commit d0d93a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ class DataDecoderInput(BaseModel):
data: str = Field(
..., pattern=r"^0x[0-9a-fA-F]*$", description="0x-prefixed hexadecimal string"
)
to: str | None = Field(
None, pattern=r"^0x[0-9a-fA-F]{40}$", description="Optional to address"
to: ChecksumAddress | None = Field(
None, pattern=r"^0x[0-9a-fA-F]$", description="Optional to address"
)
chainId: int | None = Field(
None, gt=0, description="Optional Chain ID as a positive integer"
Expand Down

0 comments on commit d0d93a9

Please sign in to comment.