aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/SolidityABIJSON.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-08-25 17:41:48 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-08-29 03:07:43 +0800
commit0e11e5af10de880340a005f63f778909c8664c90 (patch)
tree2889d5cc2dc8be170c862345c0476e0b849923ab /test/libsolidity/SolidityABIJSON.cpp
parent3d228e98f1fe9dfdbebab2537eb1d8bcc1340d0b (diff)
downloaddexon-solidity-0e11e5af10de880340a005f63f778909c8664c90.tar.gz
dexon-solidity-0e11e5af10de880340a005f63f778909c8664c90.tar.zst
dexon-solidity-0e11e5af10de880340a005f63f778909c8664c90.zip
Include all overloaded events in ABI
Diffstat (limited to 'test/libsolidity/SolidityABIJSON.cpp')
-rw-r--r--test/libsolidity/SolidityABIJSON.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityABIJSON.cpp b/test/libsolidity/SolidityABIJSON.cpp
index 0512ba1f..4b9223de 100644
--- a/test/libsolidity/SolidityABIJSON.cpp
+++ b/test/libsolidity/SolidityABIJSON.cpp
@@ -423,6 +423,8 @@ BOOST_AUTO_TEST_CASE(events)
function f(uint a) returns(uint d) { return a * 7; }
event e1(uint b, address indexed c);
event e2();
+ event e2(uint a);
+ event e3() anonymous;
}
)";
char const* interface = R"([
@@ -467,6 +469,24 @@ BOOST_AUTO_TEST_CASE(events)
"type": "event",
"anonymous": false,
"inputs": []
+ },
+ {
+ "name": "e2",
+ "type": "event",
+ "anonymous": false,
+ "inputs": [
+ {
+ "indexed": false,
+ "name": "a",
+ "type": "uint256"
+ }
+ ]
+ },
+ {
+ "name": "e3",
+ "type": "event",
+ "anonymous": true,
+ "inputs": []
}
])";