mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
added anonymous to ABI
This commit is contained in:
parent
26b2b4d9a6
commit
9f49446688
@ -309,6 +309,7 @@ BOOST_AUTO_TEST_CASE(events)
|
|||||||
{
|
{
|
||||||
"name": "e1",
|
"name": "e1",
|
||||||
"type": "event",
|
"type": "event",
|
||||||
|
"anonymous": false,
|
||||||
"inputs": [
|
"inputs": [
|
||||||
{
|
{
|
||||||
"indexed": false,
|
"indexed": false,
|
||||||
@ -325,6 +326,7 @@ BOOST_AUTO_TEST_CASE(events)
|
|||||||
{
|
{
|
||||||
"name": "e2",
|
"name": "e2",
|
||||||
"type": "event",
|
"type": "event",
|
||||||
|
"anonymous": false,
|
||||||
"inputs": []
|
"inputs": []
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -333,6 +335,23 @@ BOOST_AUTO_TEST_CASE(events)
|
|||||||
checkInterface(sourceCode, interface);
|
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)
|
BOOST_AUTO_TEST_CASE(inherited)
|
||||||
{
|
{
|
||||||
@ -380,6 +399,7 @@ BOOST_AUTO_TEST_CASE(inherited)
|
|||||||
{
|
{
|
||||||
"name": "derivedEvent",
|
"name": "derivedEvent",
|
||||||
"type": "event",
|
"type": "event",
|
||||||
|
"anonymous": false,
|
||||||
"inputs":
|
"inputs":
|
||||||
[{
|
[{
|
||||||
"indexed": true,
|
"indexed": true,
|
||||||
@ -390,6 +410,7 @@ BOOST_AUTO_TEST_CASE(inherited)
|
|||||||
{
|
{
|
||||||
"name": "baseEvent",
|
"name": "baseEvent",
|
||||||
"type": "event",
|
"type": "event",
|
||||||
|
"anonymous": false,
|
||||||
"inputs":
|
"inputs":
|
||||||
[{
|
[{
|
||||||
"indexed": true,
|
"indexed": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user