Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

call to undeclared procedure: address_0x... #130

Open
dddejan opened this issue Jan 22, 2020 · 0 comments
Open

call to undeclared procedure: address_0x... #130

dddejan opened this issue Jan 22, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@dddejan
Copy link
Member

dddejan commented Jan 22, 2020

pragma solidity >=0.5.0;

contract A {
  address public constant owner = address(0x0CD95a59fAd089c4EBCCEB54f335eC8f61Caa80e);
}
contract B {
  A a;
  function f() public view returns (address b) {
    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_0x0CD95a59fAd089c4EBCCEB54f335eC8f61Caa80e
1 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.
@dddejan dddejan added the bug Something isn't working label Jan 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant