mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-25 11:47:57 +00:00
6635a0b337
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
50 lines
1.1 KiB
Solidity
50 lines
1.1 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8;
|
|
|
|
/* runner.json
|
|
{
|
|
"differential": true,
|
|
"actions": [
|
|
{
|
|
"Instantiate": {
|
|
"code": {
|
|
"Solidity": {
|
|
"contract": "Events"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"Call": {
|
|
"dest": {
|
|
"Instantiated": 0
|
|
},
|
|
"data": "4d43bec90000000000000000000000000000000000000000000000000000000000000000"
|
|
}
|
|
},
|
|
{
|
|
"Call": {
|
|
"dest": {
|
|
"Instantiated": 0
|
|
},
|
|
"data": "4d43bec9000000000000000000000000000000000000000000000000000000000000007b"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
*/
|
|
|
|
contract Events {
|
|
event A() anonymous;
|
|
event E(uint, uint indexed, uint indexed, uint indexed);
|
|
|
|
function emitEvent(uint topics) public {
|
|
if (topics == 0) {
|
|
emit A();
|
|
} else {
|
|
emit E(topics, 1, 2, 3);
|
|
}
|
|
}
|
|
}
|