You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pragma solidity>=0.5.0;
contractA {
addresspublic constant owner =address(0x0CD95a59fAd089c4EBCCEB54f335eC8f61Caa80e);
}
contractB {
A a;
function f() publicviewreturns (addressb) {
b = a.owner();
}
}
Gives
$ solc-verify.py issue.sol --output .Error while running verifier, details:Parsing ./issue.sol.bpl./issue.sol.bpl(33,1): Error: call to undeclared procedure: address_0x0CD95a59fAd089c4EBCCEB54f335eC8f61Caa80e1 name resolution errors detected in ./issue.sol.bpl
Surprisingly, if I replace the address with 0x0, then I get
solc-verify.py issue.sol --output .
A::[implicit_constructor]: OK
B::[implicit_constructor]: OK
B::f: SKIPPED
Use --show-warnings to see 1 warning.
Some functions were skipped. Use --verbose to see details.
No errors found.
The text was updated successfully, but these errors were encountered:
Gives
Surprisingly, if I replace the address with
0x0
, then I getThe text was updated successfully, but these errors were encountered: