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

Fixed getTypes for types without argument data #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Reimajo
Copy link

@Reimajo Reimajo commented Feb 23, 2022

When using types without argument data, e.g. Bools, the message end with the type. Since no byte follows, msg.Length is index + 4 in this case and getTypes needs to check i <= msg.Length and not i < msg.Length

When using types without argument data, e.g. Bools, the message end with the type. Since no byte follows, msg.Length is index + 4 in this case and getTypes needs to check i <= msg.Length and not i < msg.Length
@Opcode01
Copy link

Opcode01 commented May 21, 2022

Hey, I just ran into this same issue. I made this same change locally and it worked. Looks like this might solve #5 , this change should be merged.

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