declare
Declares a contract contract
- name of a contract as Cairo string. It is a name of the contract (part after mod keyword) e.g. "HelloStarknet" Returns the DeclareResult
that encapsulated possible outcomes in the enum: - Success
: Contains the successfully declared ContractClass
. - AlreadyDeclared
: Contains ContractClass
and signals that the contract has already been declared.
Fully qualified path: snforge_std::cheatcodes::contract_class::declare
pub fn declare(contract: ByteArray) -> Result<DeclareResult, Array<felt252>>