CheatSpan
Enum used to specify how long the target should be cheated for.
Fully qualified path: snforge_std::cheatcodes::CheatSpan
#[derive(Copy, Drop, Serde, PartialEq, Clone, Debug)]
pub enum CheatSpan {
Indefinite: (),
TargetCalls: usize,
}
Variants
Indefinite
Applies the cheatcode indefinitely, until the cheat is canceled manually (e.g. using stop_cheat_block_timestamp
).
Fully qualified path: snforge_std::cheatcodes::CheatSpan::Indefinite
Indefinite : ( )
TargetCalls
Applies the cheatcode for a specified number of calls to the target, after which the cheat is canceled (or until the cheat is canceled manually).
Fully qualified path: snforge_std::cheatcodes::CheatSpan::TargetCalls
TargetCalls : usize