forked from cerc-io/laconicd-deprecated
ecd76396eb
* tests(filters) add block hash check on newBlock filter * tests(filters) add getLogs test cases * tests(filters) add eth_newFilter multiple filters test cases * tests(filters) add eth_newFilter and eth_eth_uninstallFilter test case * tests(filters) fix linting errors * tests(filters) fix linting error on imports * tests(filters) add test case: register filter before contract deploy * tests(filters) refactor logs topics assertion * tests(filters) add topics filter test cases * tests(filters) fix linting errors * tests(filters) remove unnecessary package.json file * tests(filters) update based on PR comments * tests(filters) separate getNewBlocks failing test to a separate PR * tests(filters) add retry on send_tx to avoid Timeout error * tests(filters) add logs by topic and block range test case * update gomod2nix * tests(filters) remove test elapsed time log Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Freddy Caceres <facs95@gmail.com>
21 lines
430 B
Solidity
21 lines
430 B
Solidity
pragma solidity >0.5.0;
|
|
|
|
contract Greeter {
|
|
string public greeting;
|
|
|
|
event ChangeGreeting(address from, string value);
|
|
|
|
constructor() public {
|
|
greeting = "Hello";
|
|
}
|
|
|
|
function setGreeting(string memory _greeting) public {
|
|
greeting = _greeting;
|
|
emit ChangeGreeting(msg.sender, _greeting);
|
|
}
|
|
|
|
function greet() public view returns (string memory) {
|
|
return greeting;
|
|
}
|
|
}
|