mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-10-21 11:16:17 +00:00
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);
|
|
}
|
|
}
|
|
}
|