Skip to content

Fixed getTypes for types without argument data#6

Open
Reimajo wants to merge 1 commit intoValdemarOrn:masterfrom
Reimajo:Reimajo-patch-getTypes-for-types-without-argument-data
Open

Fixed getTypes for types without argument data#6
Reimajo wants to merge 1 commit intoValdemarOrn:masterfrom
Reimajo:Reimajo-patch-getTypes-for-types-without-argument-data

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