Skip to content

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

Open
ekpyron wants to merge 1 commit intoArachnid:masterfrom
ekpyron:literalBytesConversions
Open

Add explicit conversions from bytes32 to uint256 to allow binary operations#31
ekpyron wants to merge 1 commit intoArachnid:masterfrom
ekpyron:literalBytesConversions

Conversation

@ekpyron
Copy link

@ekpyron ekpyron commented Aug 7, 2018

In solidity 0.5.0 (see argotorg/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