solidity/test/libsolidity/semanticTests/inlineAssembly/chainid.sol
2019-11-19 17:09:18 +01:00

13 lines
199 B
Solidity

contract C {
function f() public returns (uint id) {
assembly {
id := chainid()
}
}
}
// ====
// compileViaYul: also
// EVMVersion: >=istanbul
// ----
// f() -> 1