Skip to content

Commit 19cde3f

Browse files
Fix sncast utils class-hash docs (#3773)
<!-- Reference any GitHub issues resolved by this PR --> Closes # ## Introduced changes <!-- A brief description of the changes --> - ## Checklist <!-- Make sure all of these are complete --> - [ ] Linked relevant issue - [ ] Updated relevant documentation - [ ] Added relevant tests - [ ] Performed self-review of the code - [ ] Added changes to `CHANGELOG.md`
1 parent 11c1e78 commit 19cde3f

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6868
- `--test-files` flag to `verify` command to include test files under src/ for verification (only applies to voyager)
6969
- `--tip` flag to `invoke`, `declare`, `deploy`, `multicall run` and `account deploy` commands to set the transaction tip
7070
- `--estimate-tip` flag which automatically adds an estimated tip to the transaction. The tip is calculated based on the current network conditions and added to the transaction fee
71+
- `utils class-hash` command to calculate the class hash for a contract
7172

7273
#### Changed
7374

@@ -82,12 +83,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8283

8384
- A bug that caused `#[fuzzer]` attribute to fail when used with generic structs
8485

85-
### Cast
86-
87-
#### Added
88-
89-
- `utils class-hash` command to calculate the class hash for a contract
90-
9186
## [0.48.0] - 2025-08-05
9287

9388
### Forge

docs/src/appendix/sncast.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@
2121
* [tx-status](./sncast/tx-status.md)
2222
* [utils](./sncast/utils/utils.md)
2323
* [serialize](./sncast/utils/serialize.md)
24+
* [class-hash](./sncast/utils/class_hash.md)
2425
* [completions](./sncast/completions.md)

docs/src/appendix/sncast/utils/class_hash.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
# Calculate contract class hash
1+
# `class-hash`
2+
Calculate the class hash of a contract.
23

3-
## Overview
4-
Use the `sncast utils class-hash` command to calculate the class hash of a contract.
4+
## `--contract-name <CONTRACT_NAME>`
5+
Required.
56

6-
## Examples
7+
The name of the contract. The contract name is the part after the `mod` keyword in your contract file.
78

8-
### General Example
9+
## General Example
910

1011
```shell
1112
$ sncast utils \

0 commit comments

Comments
 (0)