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_chain_id

Changes the transaction chain_id for the given contract_address.

  • contract_address - instance of ContractAddress specifying which contract to cheat
  • chain_id - transaction chain_id to be set

Fully qualified path: snforge_std::cheatcodes::execution_info::chain_id::start_cheat_chain_id

pub fn start_cheat_chain_id(contract_address: ContractAddress, chain_id: felt252)