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

Add support for prevrandao #1736

Closed
0xalpharush opened this issue Mar 9, 2023 · 1 comment
Closed

Add support for prevrandao #1736

0xalpharush opened this issue Mar 9, 2023 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@0xalpharush
Copy link
Contributor

For EVM versions paris and later, difficulty was replaced by prevrandao

contract C {
    function f() public view returns (uint256) {
        return block.prevrandao;
    }

    function g() public view returns (uint256 ret) {
        assembly {
            ret := prevrandao()
        }
    }
}
@0xalpharush 0xalpharush added the enhancement New feature or request label Mar 9, 2023
@0xalpharush 0xalpharush added this to the 0.9.4 milestone Apr 4, 2023
@kamenik
Copy link

kamenik commented Jun 5, 2023

Would be nice, lost few hours trying to use slither with my, too new, code:/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants