ReplaceBytecodeError

Fully qualified path: snforge_std::cheatcodes::ReplaceBytecodeError

#[derive(Drop, Serde, PartialEq, Debug)]
pub enum ReplaceBytecodeError {
    ContractNotDeployed,
    UndeclaredClassHash,
}

Variants

ContractNotDeployed

Means that the contract does not exist, and thus bytecode cannot be replaced

Fully qualified path: snforge_std::cheatcodes::ReplaceBytecodeError::ContractNotDeployed

ContractNotDeployed

UndeclaredClassHash

Means that the given class for replacement is not declared

Fully qualified path: snforge_std::cheatcodes::ReplaceBytecodeError::UndeclaredClassHash

UndeclaredClassHash