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

stop_cheat_block_hash

Cancels the cheat_block_hash/start_cheat_block_hash for a specific contract.

  • block_number - Block number for which the cheat should be stopped.
  • contract_address - The contract affected by the previous cheat.

Fully qualified path: snforge_std::cheatcodes::block_hash::stop_cheat_block_hash

pub fn stop_cheat_block_hash(contract_address: ContractAddress, block_number: u64)