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_transaction_hash

Changes the transaction hash for the given contract_address.

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

Fully qualified path: snforge_std::cheatcodes::execution_info::transaction_hash::start_cheat_transaction_hash

pub fn start_cheat_transaction_hash(contract_address: ContractAddress, transaction_hash: felt252)