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

Important: If you're encountering any problem declaring contracts, please read the Blake Hash Support information.

Transaction version

Cheatcodes modifying transaction version:

cheat_transaction_version

fn cheat_transaction_version(target: ContractAddress, version: felt252, span: CheatSpan)

Changes the transaction version for the given target and span.

start_cheat_transaction_version_global

fn start_cheat_transaction_version_global(version: felt252)

Changes the transaction version for all targets.

start_cheat_transaction_version

fn start_cheat_transaction_version(target: ContractAddress, version: felt252)

Changes the transaction version for the given target.

stop_cheat_transaction_version

fn stop_cheat_transaction_version(target: ContractAddress)

Cancels the cheat_transaction_version / start_cheat_transaction_version for the given target.

stop_cheat_transaction_version_global

fn stop_cheat_transaction_version_global()

Cancels the start_cheat_transaction_version_global.