Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

block_hash

Fully qualified path: snforge_std::cheatcodes::block_hash

Free functions

cheat_block_hashChanges the block hash for the given block number and contract address....
start_cheat_block_hash_globalStarts a global block hash modification....
stop_cheat_block_hash_globalCancels the start_cheat_block_hash_global ....
start_cheat_block_hashStarts a block hash modification for a specific contract....
stop_cheat_block_hashCancels the cheat_block_hash / start_cheat_block_hash for a specific contract....