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_number

Changes the block number for the given contract_address.

  • contract_address - instance of ContractAddress specifying which contract to cheat
  • block_number - block number to be set

Fully qualified path: snforge_std::cheatcodes::execution_info::block_number::start_cheat_block_number

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