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

Add optional flag to message description #13

Closed
iam047801 opened this issue May 19, 2023 · 0 comments · Fixed by #21
Closed

Add optional flag to message description #13

iam047801 opened this issue May 19, 2023 · 0 comments · Fixed by #21
Labels
bug Something isn't working

Comments

@iam047801
Copy link
Collaborator

iam047801 commented May 19, 2023

Some messages might have such fields, that users can omit them and do no put in the payload. For example, it can be forward_payload in nft_item_transfer message, or custom_payload in jetton_burn.

If field does not exists in the payload, Anton fails with the following error:
{"level":"warn","error":"load from cell: failed to load maybe for CustomPayload, err: not enough data in reader, need 1, has 0","tx_hash":"8ad6febf40eed096d8d911466c069ebc693e4d5e641a4e806a19d5831233141b","dst_addr":"EQAszkABaoiX_-JnjFXSo39Ryoept-9-W2Pmd3Y2mO4F0bHb","op_id":1499400124,"time":1684256426,"caller":"/go/src/github.com/tonindexer/anton/internal/app/parser/tx.go:90","message":"parse dst [jetton_wallet] message"}

We should skip such fields, just parse other fields and do not fail.

@iam047801 iam047801 added the bug Something isn't working label May 19, 2023
@iam047801 iam047801 mentioned this issue Jun 9, 2023
stfy added a commit to stfy/anton that referenced this issue Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant