mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-10 05:18:05 +00:00
b243025ca8
* Add tests for getStorageInfo and getEventNameTopics. * Lint solidity-mapper package code. * Add test for contract type. * Add test for fixed size byte arrays. * Add test for Enum types. * Add tests for variables packed together and using single slot. * Fix comments in test contracts. Co-authored-by: nikugogoi <95nikass@gmail.com>
12 lines
321 B
Solidity
12 lines
321 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.7.0;
|
|
|
|
contract TestEvents {
|
|
event Event1(address address1, string string1, string strin2);
|
|
|
|
// Function to emit event.
|
|
function emitEvent(string calldata string1, string calldata string2) external {
|
|
emit Event1(msg.sender, string1, string2);
|
|
}
|
|
}
|