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

Add explicit conversions from bytes32 to uint256 to allow binary operations #31

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

Add explicit conversions from bytes32 to uint256 to allow binary operations #31

wants to merge 1 commit into from

Conversation

ekpyron
Copy link

@ekpyron ekpyron commented Aug 7, 2018

In solidity 0.5.0 (see ethereum/solidity#4696) we will restrict implicit (and explicit) conversions between number literals and bytesXX types. Among others this will prevent binary operations between bytesXX and hex literals that have a different size (i.e. number of digits) - explicit casts become necessary. This PR adds the necessary explicit conversions to strings.sol.

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