Skip to content

Commit

Permalink
Allow bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui committed May 2, 2024
1 parent 0920f48 commit da45390
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/soroban/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,12 @@ class Argument(BaseModel):
model_config = ConfigDict(arbitrary_types_allowed=True)

type: str
value: int | str | xdr.SCVal
value: int | bytes | str | xdr.SCVal


class Parameter(Argument):
name: str
value: int | str | xdr.SCVal | list[Argument | xdr.SCVal]
value: int | bytes | str | xdr.SCVal | list[Argument | xdr.SCVal]

@model_validator(mode="after")
def value_to_scval(self) -> "Parameter":
Expand Down

0 comments on commit da45390

Please sign in to comment.