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

cheat_account_deployment_data

Changes the transaction account deployment data for the given contract address and span.

  • contract_address - instance of ContractAddress specifying which contracts to cheat
  • account_deployment_data - transaction account deployment data to be set
  • span - instance of CheatSpan specifying the number of contract calls with the cheat applied

Fully qualified path: snforge_std::cheatcodes::execution_info::account_deployment_data::cheat_account_deployment_data

pub fn cheat_account_deployment_data(
    contract_address: ContractAddress, account_deployment_data: Span<felt252>, span: CheatSpan,
)