Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

calculate_contract_address_from_deploy_syscall

Returns the contract address from a deploy_syscall. deployer_address should be the zero address if the deployment is origin-independent (deployed from zero).

For more information, see https://docs.starknet.io/architecture-and-concepts/smart-contracts/contract-address/

Fully qualified path: openzeppelin_utils::deployments::calculate_contract_address_from_deploy_syscall

pub fn calculate_contract_address_from_deploy_syscall(
    salt: felt252,
    class_hash: ClassHash,
    constructor_calldata: Span<felt252>,
    deployer_address: ContractAddress,
) -> ContractAddress