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

Input validation for multibyte is off #22

Open
gpersoon opened this issue Sep 18, 2019 · 2 comments
Open

Input validation for multibyte is off #22

gpersoon opened this issue Sep 18, 2019 · 2 comments
Assignees

Comments

@gpersoon
Copy link
Contributor

When you have an input field of bytes4, like in the following function:

pragma solidity ^0.5.0;
contract TestInput {  
      function Test(bytes4 x) external view returns(bytes4) {
         return x;
    }  
}

And then you enter "0x12", the input validator shows √ which indicates the input is ok. However when you press the arrow icon nothing happens:
image

Only when you enter 8 digits, like "0x12345678" you can use the arrow and the function is called.

@serapath
Copy link
Member

interesting, that's weird. I'm actually quite surprised that bytes4 shows up like that.
Again something, that @ninabreznik would know a bit better and also what are the plans regarding this :-)

But good catch. thx :-)

@alincode
Copy link

@ninabreznik fixed at solidity-validator 0.5.0

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