Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pydantic.v1.error_wrappers.ValidationError #10

Closed
AveZorgen opened this issue Apr 23, 2024 · 3 comments
Closed

pydantic.v1.error_wrappers.ValidationError #10

AveZorgen opened this issue Apr 23, 2024 · 3 comments

Comments

@AveZorgen
Copy link

I'v got an error:

Error: 1 validation error for Trace
children -> 0 -> transaction -> out_msgs -> 1 -> init -> library
field required (type=value_error.missing) on tx 6fa11e0361f5a981724dc44de172464884746d7d1d72f25a5fe3e251b7727658

One of out_msgs field didn't have an field init at all but usually does (for example in a4a644cad11d72a8b6a9fc1537488e7d5d9c11aec6f18e17a43d6d96ea4c925c init just null)

@nessshon
Copy link
Collaborator

@AveZorgen, I'm not entirely sure what the error is. I tried running the tonapi.traces.get_trace method with the identifier a4a644cad11d72a8b6a9fc1537488e7d5d9c11aec6f18e17a43d6d96ea4c925c and didn't encounter any issues.

@zenoize
Copy link

zenoize commented Apr 26, 2024

fixed this bug:

class Message(BaseModel):
---->    init: Optional[StateInit]

@nessshon
Copy link
Collaborator

@AveZorgen
Understood the issue. Previously, the StateInit schema included the following fields:

class StateInit(BaseModel):
    code: Optional[str]
    data: Optional[str]
    library: Dict[str, str]

Now it has changed and includes only one field:

class StateInit(BaseModel):
    boc: str

Updated in version 0.2.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants