mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-18 03:31:03 +00:00
@@ -1,3 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity ^0.8;
|
||||
|
||||
contract DivisionArithmetics {
|
||||
function div(uint n, uint d) public pure returns (uint q) {
|
||||
assembly {
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user