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_account_contract_address

Changes the address of an account which the transaction originates from, for the given contract_address.

  • contract_address - instance of ContractAddress specifying which contract to cheat
  • account_contract_address - transaction account deployment data to be set

Fully qualified path: snforge_std::cheatcodes::execution_info::account_contract_address::start_cheat_account_contract_address

pub fn start_cheat_account_contract_address(
    contract_address: ContractAddress, account_contract_address: ContractAddress,
)