diff options
author | chriseth <chris@ethereum.org> | 2018-06-27 21:00:34 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-06-27 21:00:34 +0800 |
commit | 92cb4acd8a748ef2cf6a00a5a9f41975c23127c2 (patch) | |
tree | 87db1291c33d05fbf10113552689ff04e2044761 /test/libsolidity/syntaxTests/specialFunctions | |
parent | 4154e1480b7e350ac1cb1cb8591abe08fa90e0e4 (diff) | |
download | dexon-solidity-92cb4acd8a748ef2cf6a00a5a9f41975c23127c2.tar dexon-solidity-92cb4acd8a748ef2cf6a00a5a9f41975c23127c2.tar.gz dexon-solidity-92cb4acd8a748ef2cf6a00a5a9f41975c23127c2.tar.bz2 dexon-solidity-92cb4acd8a748ef2cf6a00a5a9f41975c23127c2.tar.lz dexon-solidity-92cb4acd8a748ef2cf6a00a5a9f41975c23127c2.tar.xz dexon-solidity-92cb4acd8a748ef2cf6a00a5a9f41975c23127c2.tar.zst dexon-solidity-92cb4acd8a748ef2cf6a00a5a9f41975c23127c2.zip |
Also mention regular abi.encode in error message.
Diffstat (limited to 'test/libsolidity/syntaxTests/specialFunctions')
-rw-r--r-- | test/libsolidity/syntaxTests/specialFunctions/single_non_bytes_arg.sol | 6 |
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 f931d6cf..c17d0849 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. 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. +// 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 obtain the pre-0.5.0 behaviour or abi.encode(...) to use ABI encoding. +// 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 obtain the pre-0.5.0 behaviour or abi.encode(...) to use ABI encoding. +// 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 obtain the pre-0.5.0 behaviour or abi.encode(...) to use ABI encoding. |