2019-11-14 11:44:33 +00:00
contract C {
function f ( ) pure external returns ( uint id ) {
assembly {
id : = chainid ( )
}
}
function g ( ) view external returns ( uint sb ) {
assembly {
sb : = selfbalance ( )
}
}
}
// ====
// EVMVersion: =petersburg
// ----
2020-07-02 23:19:44 +00:00
// TypeError 1561: (101-108): The "chainid" instruction is only available for Istanbul-compatible VMs (you are currently compiling for "petersburg").
2020-06-19 00:26:46 +00:00
// DeclarationError 8678: (95-110): Variable count does not match number of values (1 vs. 0)
2020-07-02 23:19:44 +00:00
// TypeError 3672: (215-226): The "selfbalance" instruction is only available for Istanbul-compatible VMs (you are currently compiling for "petersburg").
2020-06-19 00:26:46 +00:00
// DeclarationError 8678: (209-228): Variable count does not match number of values (1 vs. 0)