diff options
author | chriseth <chris@ethereum.org> | 2018-07-04 19:56:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-04 19:56:10 +0800 |
commit | 476372243bac932ae876bf24c236d48870be2912 (patch) | |
tree | 126d4afb677ecd531532573f22be95090145f48f /test/libsolidity/syntaxTests/specialFunctions | |
parent | 533d5d4b1cc4374decc704de8c86ad4cef6214fc (diff) | |
parent | 8202d512e0bd4e6b4a19ed483afff288514e75bd (diff) | |
download | dexon-solidity-476372243bac932ae876bf24c236d48870be2912.tar dexon-solidity-476372243bac932ae876bf24c236d48870be2912.tar.gz dexon-solidity-476372243bac932ae876bf24c236d48870be2912.tar.bz2 dexon-solidity-476372243bac932ae876bf24c236d48870be2912.tar.lz dexon-solidity-476372243bac932ae876bf24c236d48870be2912.tar.xz dexon-solidity-476372243bac932ae876bf24c236d48870be2912.tar.zst dexon-solidity-476372243bac932ae876bf24c236d48870be2912.zip |
Merge pull request #4423 from ethereum/enforce_error_gasleft
[BREAKING] Enforce error on msg.gas and block.blockhash()
Diffstat (limited to 'test/libsolidity/syntaxTests/specialFunctions')
-rw-r--r-- | test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_internal_functions.sol | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_internal_functions.sol b/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_internal_functions.sol index b94a4391..a30e428a 100644 --- a/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_internal_functions.sol +++ b/test/libsolidity/syntaxTests/specialFunctions/types_with_unspecified_encoding_internal_functions.sol @@ -1,6 +1,6 @@ contract C { function f() public pure { - bytes32 h = keccak256(abi.encodePacked(keccak256, f, this.f.gas, block.blockhash)); + bytes32 h = keccak256(abi.encodePacked(keccak256, f, this.f.gas, blockhash)); h; } } @@ -8,4 +8,4 @@ contract C { // TypeError: (91-100): This type cannot be encoded. // TypeError: (102-103): This type cannot be encoded. // TypeError: (105-115): This type cannot be encoded. -// TypeError: (117-132): This type cannot be encoded. +// TypeError: (117-126): This type cannot be encoded. |