Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 422 Bytes

File metadata and controls

22 lines (15 loc) · 422 Bytes

prevrandao

Description

The prevrandao cheatcode updates the block.prevrandao.

Example

// Obtain our cheat code contract reference.
IStdCheats cheats = IStdCheats(0x7109709ECfa91a80626fF3989D68f67F5b1DD12D);

// Change value and verify.
cheats.prevrandao(bytes32(uint256(42)));
assert(block.prevrandao == 42);

Function Signature

function prevrandao(bytes32) external;