Skip to content

Conversation

@CanardMandarin
Copy link
Contributor

It’s better for the TokenProgram parser to use unpack_from_slice instead of unpack, otherwise it may fail on uninitialized accounts. The handlers should be responsible for dealing with that logic.

I also replaced the "Invalid Account data length" error with Err(ParseError::Filtered) because the previous message was generating a lot of noise due to the large number of accounts with incorrect lengths.

image

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

Successfully merging this pull request may close these issues.

2 participants