pub fn raw_GetDeployAddress(
caller_address: Option<&ContractAddress>,
nonce: &SHA256Hash,
contract_hash: &SHA256Hash,
to_be_deployed: &mut ContractAddress,
) -> Result<(), SysErr>Expand description
Computes the address that would be deployed for a contract with the given deployer address, nonce, and contract hash. This is a pure computation and does not actually deploy the contract. If caller_address is omitted, the current contract’s address is used, giving the address DeployContract would use.
§Arguments
§Inputs
caller_addressnoncecontract_hash
§Outputs
The following parameters are written by the syscall only if it returns kSyscallErrorCodeNone. A span output then has only its first min(len, written_len) bytes written:
to_be_deployed
This is the raw_GetDeployAddress variant that wraps uninit_GetDeployAddress.
It converts regular output types to MaybeUninit and calls uninit_GetDeployAddress.