aboutsummaryrefslogtreecommitdiffstats
path: root/SolidityABIJSON.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-03-17 18:34:56 +0800
committerLiana Husikyan <liana@ethdev.com>2015-03-17 21:25:23 +0800
commit9f49446688280f108c5c4025bd1eb1aa1023a3fa (patch)
tree78e62ec26933ad42daa5c11ab741f45c9b5463a9 /SolidityABIJSON.cpp
parent26b2b4d9a6130a1f8a30f00d70519f57ee548747 (diff)
downloaddexon-solidity-9f49446688280f108c5c4025bd1eb1aa1023a3fa.tar
dexon-solidity-9f49446688280f108c5c4025bd1eb1aa1023a3fa.tar.gz
dexon-solidity-9f49446688280f108c5c4025bd1eb1aa1023a3fa.tar.bz2
dexon-solidity-9f49446688280f108c5c4025bd1eb1aa1023a3fa.tar.lz
dexon-solidity-9f49446688280f108c5c4025bd1eb1aa1023a3fa.tar.xz
dexon-solidity-9f49446688280f108c5c4025bd1eb1aa1023a3fa.tar.zst
dexon-solidity-9f49446688280f108c5c4025bd1eb1aa1023a3fa.zip
added anonymous to ABI
Diffstat (limited to 'SolidityABIJSON.cpp')
-rw-r--r--SolidityABIJSON.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/SolidityABIJSON.cpp b/SolidityABIJSON.cpp
index 19527013..f7f968ea 100644
--- a/SolidityABIJSON.cpp
+++ b/SolidityABIJSON.cpp
@@ -309,6 +309,7 @@ BOOST_AUTO_TEST_CASE(events)
{
"name": "e1",
"type": "event",
+ "anonymous": false,
"inputs": [
{
"indexed": false,
@@ -325,6 +326,7 @@ BOOST_AUTO_TEST_CASE(events)
{
"name": "e2",
"type": "event",
+ "anonymous": false,
"inputs": []
}
@@ -333,6 +335,23 @@ BOOST_AUTO_TEST_CASE(events)
checkInterface(sourceCode, interface);
}
+BOOST_AUTO_TEST_CASE(events_anonymous)
+{
+ char const* sourceCode = "contract test {\n"
+ " event e() anonymous; \n"
+ "}\n";
+ char const* interface = R"([
+ {
+ "name": "e",
+ "type": "event",
+ "anonymous": true,
+ "inputs": []
+ }
+
+ ])";
+
+ checkInterface(sourceCode, interface);
+}
BOOST_AUTO_TEST_CASE(inherited)
{
@@ -380,6 +399,7 @@ BOOST_AUTO_TEST_CASE(inherited)
{
"name": "derivedEvent",
"type": "event",
+ "anonymous": false,
"inputs":
[{
"indexed": true,
@@ -390,6 +410,7 @@ BOOST_AUTO_TEST_CASE(inherited)
{
"name": "baseEvent",
"type": "event",
+ "anonymous": false,
"inputs":
[{
"indexed": true,