go-ethereum
go-ethereum copied to clipboard
The chain_id queried in the contract is 1
contract: 0xF1EDBA79FDFbc3ce24A8d9a30c9779A65f9b142A expected: chainid()=513100
/// @dev Returns the chain id used by this contract.
function getChainId() public view returns (uint256) {
uint256 id;
// solhint-disable-next-line no-inline-assembly
assembly {
id := chainid()
}
return id;
}
How are you running geth?