github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata-london/chainid-selfbalance.sol (about) 1 // SPDX-License-Identifier: GPL-3.0 2 3 pragma solidity ^0.8.14; 4 5 contract ChainidAndSelfbalance { 6 uint256 counter = 0; 7 8 function getChainID() public view returns (uint256) { 9 return block.chainid; 10 } 11 12 function getSelfBalance() public view returns (uint256) { 13 return address(this).balance; 14 } 15 16 function increment() public { 17 counter++; 18 } 19 }