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>
13 lines
209 B
Solidity
13 lines
209 B
Solidity
pragma solidity >0.5.0;
|
|
|
|
contract TestChainID {
|
|
function currentChainID() public view returns (uint) {
|
|
uint id;
|
|
assembly {
|
|
id := chainid()
|
|
}
|
|
return id;
|
|
}
|
|
}
|
|
|