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_resource_bounds

Changes the transaction resource bounds for the given contract address and span.

  • contract_address - instance of ContractAddress specifying which contract to cheat
  • resource_bounds - transaction resource bounds 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::resource_bounds::cheat_resource_bounds

pub fn cheat_resource_bounds(
    contract_address: ContractAddress, resource_bounds: Span<ResourceBounds>, span: CheatSpan,
)