Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

declare_and_deploy

Combines the declaration of a class and the deployment of a contract into one function call. This function will skip declaration if the contract is already declared (the result of snforge_std::declare call is of type DeclareResult::AlreadyDeclared)

Fully qualified path: openzeppelin_testing::deployment::declare_and_deploy

pub fn declare_and_deploy(contract_name: ByteArray, calldata: Array<felt252>) -> ContractAddress