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

start_cheat_block_hash

Starts a block hash modification for a specific contract.

  • contract_address - Contract address associated with the modification.
  • block_number - Block number to be modified.
  • block_hash - The block hash to set.

Fully qualified path: snforge_std::cheatcodes::block_hash::start_cheat_block_hash

pub fn start_cheat_block_hash(
    contract_address: ContractAddress, block_number: u64, block_hash: felt252,
)