Skip to content

Commit

Permalink
change append to prepend state-transitions-and-storage.md (#2039)
Browse files Browse the repository at this point in the history
Co-authored-by: Shawn Tabrizi <[email protected]>
  • Loading branch information
behkod and shawntabrizi authored Aug 27, 2024
1 parent 6e53d10 commit 24a2d0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/md/en/docs/learn/state-transitions-and-storage.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Substrate's [runtime storage APIs](/build/runtime-storage) expose a number of st

### Storage value keys

To calculate the key for a simple [Storage Value](/build/runtime-storage#storage-value), take the [TwoX 128 hash](https://github.com/Cyan4973/xxHash) of the name of the pallet that contains the Storage Value and append to it the TwoX 128 hash of the name of the Storage Value itself.
To calculate the key for a simple [Storage Value](/build/runtime-storage#storage-value), take the [TwoX 128 hash](https://github.com/Cyan4973/xxHash) of the name of the pallet that contains the Storage Value and prepend to it the TwoX 128 hash of the name of the Storage Value itself.
For example, the [Sudo](https://paritytech.github.io/substrate/master/pallet_sudo/index.html) pallet exposes a Storage Value item named `Key`:

```rust
Expand Down

0 comments on commit 24a2d0f

Please sign in to comment.