Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Feb 5, 2025
1 parent e65b190 commit 5dfa51b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/pages/cw-multi-test/storage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ tags: ["multitest", "storage"]
[range_keys]: https://docs.rs/cosmwasm-std/latest/cosmwasm_std/trait.Storage.html#method.range_keys
[range_values]:
https://docs.rs/cosmwasm-std/latest/cosmwasm_std/trait.Storage.html#method.range_values
[with_storage]:
https://docs.rs/cw-multi-test/latest/cw_multi_test/struct.AppBuilder.html#method.with_storage

# Storage

Expand Down Expand Up @@ -80,11 +82,14 @@ impl Storage for CustomStorage {

## Initializing storage

- `AppBuilder::with_storage{:rust}`
To initialize the default storage or use a custom storage implementation in tests,
use the [`AppBuilder::with_storage{:rust}`][with_storage] method when building the chain.
For more details, see the [AppBuilder/with_storage](app-builder#with_storage) chapter.

## Accessing storage from smart contracts

(WIP)
Smart contracts should access the storage used by the chain through libraries
such as [Storey](/storey) and [StoragePlus](/cw-storage-plus).

## Accessing storage in tests

Expand Down

0 comments on commit 5dfa51b

Please sign in to comment.