aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/specialFunctions/single_non_bytes_arg.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-06-14 22:09:29 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-06-25 23:17:48 +0800
commit4154e1480b7e350ac1cb1cb8591abe08fa90e0e4 (patch)
treed54040c6376649e237bde1d3e7ec72d63dddd2c3 /test/libsolidity/syntaxTests/specialFunctions/single_non_bytes_arg.sol
parent033672cc4821d2980924726fdfa031ea372dc2ea (diff)
downloaddexon-solidity-4154e1480b7e350ac1cb1cb8591abe08fa90e0e4.tar.gz
dexon-solidity-4154e1480b7e350ac1cb1cb8591abe08fa90e0e4.tar.zst
dexon-solidity-4154e1480b7e350ac1cb1cb8591abe08fa90e0e4.zip
Update tests and add new tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/specialFunctions/single_non_bytes_arg.sol')
-rw-r--r--test/libsolidity/syntaxTests/specialFunctions/single_non_bytes_arg.sol6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/specialFunctions/single_non_bytes_arg.sol b/test/libsolidity/syntaxTests/specialFunctions/single_non_bytes_arg.sol
index 017a89fe..f931d6cf 100644
--- a/test/libsolidity/syntaxTests/specialFunctions/single_non_bytes_arg.sol
+++ b/test/libsolidity/syntaxTests/specialFunctions/single_non_bytes_arg.sol
@@ -7,6 +7,6 @@ contract C {
function g(bytes32) pure internal {}
}
// ----
-// TypeError: (64-71): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested.
-// TypeError: (92-99): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested.
-// TypeError: (123-130): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested.
+// TypeError: (64-71): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. Use abi.encodePacked(...) to properly encode the values.
+// TypeError: (92-99): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. Use abi.encodePacked(...) to properly encode the values.
+// TypeError: (123-130): Invalid type for argument in function call. Invalid implicit conversion from uint256 to bytes memory requested. This function requires a single bytes argument. Use abi.encodePacked(...) to properly encode the values.