solidity/test/libsolidity/syntaxTests/inlineAssembly/istanbul.sol

16 lines
289 B
Solidity
Raw Normal View History

2019-09-19 09:00:43 +00:00
contract C {
function f() pure external returns (uint id) {
2019-09-19 09:00:43 +00:00
assembly {
id := chainid()
2019-09-19 09:00:43 +00:00
}
}
function g() view external returns (uint sb) {
2019-09-19 09:00:43 +00:00
assembly {
sb := selfbalance()
2019-09-19 09:00:43 +00:00
}
}
}
// ====
// EVMVersion: >=istanbul
// ----