-
Notifications
You must be signed in to change notification settings - Fork 380
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
Staticcalling a non-existent contract in constructor fails #648
Comments
Smaller example: contract Test{
constructor() public{
address a = address(0xdeadbeef);
a.call("");
}
bool public echidna_test = true;
} |
A more problematic example: contract Test{
function f() public{
address payable a = address(0xdeadbeef);
a.call("");
echidna_test = false;
}
bool public echidna_test = true;
} |
Quick workaround: |
Closing in favor of #653 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a library
and inside of a constructor, I am calling like
MockConsole.log("foo", 5)
. TheCONSOLE_ADDRESS
is an EOA in my context, so I would expect the staticcall to succeed. Instead, the deployment fails with:Note: When I uncomment the line with the staticcall, the deployment succeeds.
This looks like an hevm issues, any ideas?
The text was updated successfully, but these errors were encountered: