aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityABIJSON.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r--test/libsolidity/SolidityABIJSON.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp
index f77ad5fc..5cabb7fa 100644
--- a/test/libsolidity/SolidityABIJSON.cpp
+++ b/test/libsolidity/SolidityABIJSON.cpp
@@ -707,7 +707,7 @@ BOOST_AUTO_TEST_CASE(function_type)
{
char const* sourceCode = R"(
contract test {
- function g(function(uint) external returns (uint)) {}
+ function g(function(uint) external returns (uint) x) {}
}
)";
@@ -715,8 +715,11 @@ BOOST_AUTO_TEST_CASE(function_type)
[
{
"constant" : false,
- "payable": true,
- "inputs": ["function"],
+ "payable": false,
+ "inputs": [{
+ "name": "x",
+ "type": "function"
+ }],
"name": "g",
"outputs": [],
"type" : "function"