From da45390b31fac985d43abdae99f1a9f978ef2b02 Mon Sep 17 00:00:00 2001 From: Pamphile Roy Date: Fri, 3 May 2024 01:49:23 +0200 Subject: [PATCH] Allow bytes --- src/soroban/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/soroban/models.py b/src/soroban/models.py index c50a58b..2164886 100644 --- a/src/soroban/models.py +++ b/src/soroban/models.py @@ -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":