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

Support implicit conversion from "bytes" to "string" for function arguments #229

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

Comments

@ellab123
Copy link
Collaborator

VeriSol translator complains about "bytes" argument being called with "string" value:
Test\regressions\StringToBytes.sol
Test\regressions\StringToBytes2.sol

@ellab123 ellab123 added the enhancement New feature or request label Jan 21, 2020
@ellab123
Copy link
Collaborator Author

Note that using value "" as an argument x of type "bytes" assigns a hash value of the string "" to x. We should consider using UTF8 character encoding instead, but this issue has to be further investigated.

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

1 participant