mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-04-22 21:58:01 +00:00
83bf9d6041
Signed-off-by: xermicus <cyrill@parity.io>
17 lines
327 B
Solidity
17 lines
327 B
Solidity
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8;
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|