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

Support for solidity global variables #119

Open
beillahi opened this issue Dec 3, 2019 · 2 comments
Open

Support for solidity global variables #119

beillahi opened this issue Dec 3, 2019 · 2 comments
Assignees

Comments

@beillahi
Copy link

beillahi commented Dec 3, 2019

pragma solidity ^0.5.0;


contract test {
    

    function g() public returns (uint) {

       return block.timestamp;
    }
}
-----------------
test::[implicit_constructor]: OK
test::g: SKIPPED
Use --show-warnings to see 2 warnings.
Some functions were skipped. Use --verbose to see details.
No errors found.

and

pragma solidity ^0.5.0;


contract test {
    
    function g() public returns (uint) {

       return block.difficulty;
    }
}
-----------------
test::[implicit_constructor]: OK
test::g: SKIPPED
Use --show-warnings to see 2 warnings.
Some functions were skipped. Use --verbose to see details.
No errors found.
@hajduakos
Copy link
Member

Can we treat these special members as nondeterministic variables (so that there is no error)? Or do you need some special assumptions on them?

@beillahi
Copy link
Author

beillahi commented Dec 4, 2019

Giving these variables nondeterministic values should be fine

@dddejan dddejan self-assigned this Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants