diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-13 00:06:47 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-06-13 01:16:18 +0800 |
commit | 9de45383d81c666deba27162ce163fc1c8c852dc (patch) | |
tree | 9a3983c7b62802179a044b822d1b687a9e38da2b /test/libsolidity/syntaxTests/tight_packing_literals_fine.sol | |
parent | 0e23b5e9547e69db0719ebf4cada3f49a011fe8e (diff) | |
download | dexon-solidity-9de45383d81c666deba27162ce163fc1c8c852dc.tar dexon-solidity-9de45383d81c666deba27162ce163fc1c8c852dc.tar.gz dexon-solidity-9de45383d81c666deba27162ce163fc1c8c852dc.tar.bz2 dexon-solidity-9de45383d81c666deba27162ce163fc1c8c852dc.tar.lz dexon-solidity-9de45383d81c666deba27162ce163fc1c8c852dc.tar.xz dexon-solidity-9de45383d81c666deba27162ce163fc1c8c852dc.tar.zst dexon-solidity-9de45383d81c666deba27162ce163fc1c8c852dc.zip |
Disallow sha3/suicide aliases
Diffstat (limited to 'test/libsolidity/syntaxTests/tight_packing_literals_fine.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/tight_packing_literals_fine.sol | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol b/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol index 2b9b688a..27665b52 100644 --- a/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol +++ b/test/libsolidity/syntaxTests/tight_packing_literals_fine.sol @@ -2,9 +2,6 @@ contract C { function f() pure public returns (bytes32) { return keccak256(uint8(1)); } - function g() pure public returns (bytes32) { - return sha3(uint8(1)); - } function h() pure public returns (bytes32) { return sha256(uint8(1)); } @@ -21,10 +18,7 @@ contract C { // ---- // Warning: (77-96): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. // Warning: (77-96): The provided argument of type uint8 is not implicitly convertible to expected type bytes memory. -// Warning: (168-182): "sha3" has been deprecated in favour of "keccak256" -// Warning: (168-182): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. -// Warning: (168-182): The provided argument of type uint8 is not implicitly convertible to expected type bytes memory. -// Warning: (254-270): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. -// Warning: (254-270): The provided argument of type uint8 is not implicitly convertible to expected type bytes memory. -// Warning: (342-361): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. -// Warning: (342-361): The provided argument of type uint8 is not implicitly convertible to expected type bytes memory. +// Warning: (168-184): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. +// Warning: (168-184): The provided argument of type uint8 is not implicitly convertible to expected type bytes memory. +// Warning: (256-275): This function only accepts a single "bytes" argument. Please use "abi.encodePacked(...)" or a similar function to encode the data. +// Warning: (256-275): The provided argument of type uint8 is not implicitly convertible to expected type bytes memory. |