Skip to content

Commit af40fc1

Browse files
MKowalski8cptartur
andauthored
Blake hash support info banner (#3947)
<!-- Reference any GitHub issues resolved by this PR --> Closes # ## Introduced changes <!-- A brief description of the changes --> - Add info about blake hash support and delete previous message ## Checklist <!-- Make sure all of these are complete --> - [ ] Linked relevant issue - [x] Updated relevant documentation - [ ] Added relevant tests - [ ] Performed self-review of the code - [ ] Added changes to `CHANGELOG.md` --------- Co-authored-by: Artur Michałek <[email protected]>
1 parent 03a8a93 commit af40fc1

File tree

4 files changed

+41
-24
lines changed

4 files changed

+41
-24
lines changed

docs/src/SUMMARY.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* [First Steps with Starknet Foundry](getting-started/first-steps.md)
99
* [Scarb](getting-started/scarb.md)
1010
* [Project Configuration](projects/configuration.md)
11-
* [`snforge` 0.48.0 Migration Guide](getting-started/0-48-0-migration-guide.md)
11+
* [Blake Hash Support](getting-started/blake-hash-support.md)
1212

1313
---
1414

@@ -168,3 +168,4 @@
168168
* [`snfoundry.toml` Reference](appendix/snfoundry-toml.md)
169169
* [`Scarb.toml` Reference](appendix/scarb-toml.md)
170170
* [Starknet Foundry Github Action](appendix/starknet-foundry-github-action.md)
171+
* [`snforge` 0.48.0 Migration Guide](appendix/0-48-0-migration-guide.md)
File renamed without changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Blake Hash Support
2+
3+
Starting from Starknet version 0.14.1, the network switched from Poseidon hash to Blake hash for compiled class hashes.
4+
5+
Starknet Foundry version 0.53.0 and later includes support for Blake hash, ensuring compatibility with the new Starknet version.
6+
7+
## Common Issue: Mismatch Compiled Class Hash
8+
9+
If you encounter a `Mismatch compiled class hash` error, it likely means you're using an older version of Starknet Foundry that doesn't support Blake hash.
10+
11+
**Solution**: Upgrade to Starknet Foundry version 0.53.0 or later:
12+
13+
```shell
14+
asdf install starknet-foundry latest
15+
```
16+
17+
```shell
18+
asdf set --home starknet-foundry latest
19+
```
20+
21+
This will update your installation to the latest version with Blake hash support.
22+
23+
> 📝 **Note**
24+
>
25+
> For more detailed installation instructions, see the [Installation](../getting-started/installation.md) guide.

docs/theme/header.hbs

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
1-
<div class="migration-banner">
2-
<p>
3-
<strong>Important:</strong> If you're upgrading snforge to version 0.48.0 or later, please read the
4-
<a href="{{ path_to_root }}getting-started/0-48-0-migration-guide.html">0.48.0 Migration Guide</a>.
5-
</p>
1+
<div class="blake-banner">
2+
<p>
3+
<strong>Important:</strong>
4+
If you're encountering any problem declaring contracts, please read the
5+
<a href="{{path_to_root}}getting-started/blake-hash-support.html">
6+
Blake Hash Support</a>
7+
information.
8+
</p>
69
</div>
710

811
<style>
9-
.migration-banner {
10-
position: relative;
11-
z-index: 100;
12-
background-color: #f8d7da;
13-
color: #721c24;
14-
border: 0.0625rem solid #f5c6cb;
15-
border-radius: 0;
16-
text-align: center;
17-
padding: 5rem 1rem 0 1rem;
18-
width: calc(100% + 8px + var(--page-padding));
19-
margin-left: calc((8px + var(--page-padding)) * -1);
20-
}
21-
22-
.migration-banner a {
23-
color: #721c24;
24-
font-weight: bold;
25-
text-decoration: underline;
26-
}
12+
.blake-banner { position: relative; z-index: 100; background-color: #f8d7da;
13+
color: #721c24; border: 0.0625rem solid #f5c6cb; border-radius: 0; text-align:
14+
center; padding: 5rem 1rem 0 1rem; width: calc(100% + 8px +
15+
var(--page-padding)); margin-left: calc((8px + var(--page-padding)) * -1); }
16+
.blake-banner a { color: #721c24; font-weight: bold; text-decoration:
17+
underline; }
2718
</style>

0 commit comments

Comments
 (0)