Merge pull request #6120 from ethereum/soltest-hex-strings

[soltest] Add support for hex string literals
This commit is contained in:
chriseth
2019-03-13 14:12:32 +01:00
committed by GitHub
7 changed files with 115 additions and 4 deletions
@@ -17,6 +17,9 @@ contract C {
function k(bytes32 b) public returns (bytes32) {
return b;
}
function s() public returns (uint256) {
return msg.data.length;
}
}
// ----
// f() -> 2
@@ -25,3 +28,4 @@ contract C {
// i() -> FAILURE
// j(bool): true -> false
// k(bytes32): 0x31 -> 0x31
// s(): hex"4200ef" -> 7