mirror of https://github.com/crytic/slither
Merge pull request #1946 from crytic/feat/support-prevrando
add support for prevrando (solc 0.8.18)pull/1961/head
commit
414d976f30
Binary file not shown.
@ -0,0 +1,6 @@ |
||||
{ |
||||
"C": { |
||||
"f()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: RETURN 1\n\"];\n}\n", |
||||
"g()": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: INLINE ASM 1\n\"];\n1->2;\n2[label=\"Node Type: EXPRESSION 2\n\"];\n}\n" |
||||
} |
||||
} |
@ -0,0 +1,11 @@ |
||||
contract C { |
||||
function f() public view returns (uint256) { |
||||
return block.prevrandao; |
||||
} |
||||
|
||||
function g() public view returns (uint256 ret) { |
||||
assembly { |
||||
ret := prevrandao() |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue