useDeploy

Hook to deploy a Starknet contract.

You should check that contractFactory is defined before calling deploy, or the call will fail.

The transaction is submitted from the provider passed to the contract factory, so ensure to use the currently connected account.

Examples

This example shows how to deploy a contract from the currently connected account.