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

16 lines
289 B
Solidity
Raw Normal View History

2019-09-19 09:00:43 +00:00
contract C {
2020-12-09 15:00:02 +00:00
function f() view 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
// ----