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

"hex" literals are not handled #236

Open
ellab123 opened this issue Jan 27, 2020 · 1 comment
Open

"hex" literals are not handled #236

ellab123 opened this issue Jan 27, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@ellab123
Copy link
Collaborator

Constant the "hex" prefix has a wrong int value in .bpl file, for example:

bytes1 public data1 = 0x33;
bytes1 public d1 = hex"33";

Assigned values in .bpl file:
data1_Bytes[this] := 51; //correct
d1_Bytes[this] := -1549580528; //wrong

@ellab123 ellab123 added the enhancement New feature or request label Jan 27, 2020
@shuvendu-lahiri
Copy link
Member

shuvendu-lahiri commented Jan 28, 2020

test is present in comments in BytesTypes.sol by Ella

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants