You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/quick-start/environment.mdx
+28-2
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,33 @@ yarn chain
19
19
20
20
This command starts a local Starknet network using Devnet. The network runs on your local machine and can be used for testing and development. You can customize the network configuration in `scaffold.config.ts`.
21
21
22
-
### 2. Deploy your smart contract:
22
+
### 2. Declare your smart contract (optional):
23
+
24
+
Following an example at `deploy.ts`:
25
+
26
+
```typescript
27
+
const declareScript =async ():Promise<void> => {
28
+
const response =awaitdeclareContract({
29
+
contract: "YourContractName",
30
+
options: {}, // You can add options like maxFee, nonce if needed
31
+
});
32
+
};
33
+
```
34
+
35
+
After setup function at `deploy.ts` run the command :
36
+
37
+
```
38
+
yarn deploy --network {NETWORK_NAME}
39
+
```
40
+
41
+
Pay attention to the output in the terminal. The ClassHash will be displayed during the deploy contract process.
0 commit comments