solidity-stringutils icon indicating copy to clipboard operation
solidity-stringutils copied to clipboard

Add explicit conversions from bytes32 to uint256 to allow binary operations

Open ekpyron opened this issue 7 years ago • 0 comments

In solidity 0.5.0 (see https://github.com/ethereum/solidity/pull/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.

ekpyron avatar Aug 07 '18 15:08 ekpyron