pub fn versioned_contract_call_by_hash(
        sender: AccountHash,
        contract_package_hash: ContractPackageHash,
        version: Option<ContractVersion>,
        entry_point_name: &str,
        args: RuntimeArgs,
    ) -> Self {
        let mut rng = rand::thread_rng();
        let deploy_hash = rng.gen();

        let deploy = DeployItemBuilder::new()
            .with_address(sender)
            .with_stored_versioned_contract_by_hash(
                contract_package_hash.value(),
                version,
                entry_point_name,
                args,
            )
            .with_empty_payment_bytes(runtime_args! { ARG_AMOUNT => *DEFAULT_PAYMENT, })
            .with_authorization_keys(&[sender])
            .with_deploy_hash(deploy_hash)
            .build();

        ExecuteRequestBuilder::new().push_deploy(deploy)
    }
/// Returns an [`ExecuteRequest`] that will call a versioned stored contract by hash.
Returns an [`ExecuteRequest`] that will call a versioned stored contract by hash.
Returns an [ ` ExecuteRequest ` ] that will call a versioned stored contract by hash .
pub fn versioned_contract_call_by_hash(
        sender: AccountHash,
        contract_package_hash: ContractPackageHash,
        version: Option<ContractVersion>,
        entry_point_name: &str,
        args: RuntimeArgs,
    ) -> Self {
        let mut rng = rand::thread_rng();
        let deploy_hash = rng.gen();
        let deploy = DeployItemBuilder::new()
            .with_address(sender)
            .with_stored_versioned_contract_by_hash(
                contract_package_hash.value(),
                version,
                entry_point_name,
                args,
            )
            .with_empty_payment_bytes(runtime_args! { ARG_AMOUNT => *DEFAULT_PAYMENT, })
            .with_authorization_keys(&[sender])
            .with_deploy_hash(deploy_hash)
            .build();
        ExecuteRequestBuilder::new().push_deploy(deploy)
    }
pub fn versioned_contract_call_by_hash ( sender : AccountHash , contract_package_hash : ContractPackageHash , version : Option < ContractVersion > , entry_point_name : & str , args : RuntimeArgs , ) -> Self { let mut rng = rand :: thread_rng ( ) ; let deploy_hash = rng . gen ( ) ; let deploy = DeployItemBuilder :: new ( ) . with_address ( sender ) . with_stored_versioned_contract_by_hash ( contract_package_hash . value ( ) , version , entry_point_name , args , ) . with_empty_payment_bytes ( runtime_args ! { ARG_AMOUNT DEFAULT_PAYMENT } ) . with_authorization_keys ( & [ sender ] ) . with_deploy_hash ( deploy_hash ) . build ( ) ; ExecuteRequestBuilder :: new ( ) . push_deploy ( deploy ) }
Returns an [`ExecuteRequest`] that will call a versioned stored contract by hash.
Returns an [ ` ExecuteRequest ` ] that will call a versioned stored contract by hash .
sender
AccountHash
contract_package_hash
ContractPackageHash
version
Option<ContractVersion>
entry_point_name
&str
args
RuntimeArgs
sender
AccountHash
contract_package_hash
ContractPackageHash
version
Option<ContractVersion>
entry_point_name
&str
args
RuntimeArgs