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_sequencer_address

Changes the sequencer address for the given contract address and span.

  • contract_address - instance of ContractAddress specifying which contract to cheat
  • sequencer_address - sequencer address 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::sequencer_address::cheat_sequencer_address

pub fn cheat_sequencer_address(
    contract_address: ContractAddress, sequencer_address: ContractAddress, span: CheatSpan,
)