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 upgrading snforge to version 0.48.0 or later, please read the 0.48.0 Migration Guide.

signature

Cheatcodes modifying signature:

cheat_signature

fn cheat_signature(target: ContractAddress, signature: Span<felt252>, span: CheatSpan)

Changes the transaction signature for the given target and span.

start_cheat_signature_global

fn start_cheat_signature_global(signature: Span<felt252>)

Changes the transaction signature for all targets.

start_cheat_signature

fn start_cheat_signature(target: ContractAddress, signature: Span<felt252>)

Changes the transaction signature for the given target.

stop_cheat_signature

fn stop_cheat_signature(target: ContractAddress)

Cancels the cheat_signature / start_cheat_signature for the given target.

stop_cheat_signature_global

fn stop_cheat_signature_global()

Cancels the start_cheat_signature_global.