Skip to content

Commit

Permalink
Updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Aug 16, 2024
1 parent fcd5822 commit 23b97f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pages/cw-multi-test/app-builder.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ tags: ["multitest", "AppBuilder"]

## with_block

```rust {15} /with_block/ showLineNumbers
```rust showLineNumbers {15} /with_block/
use cosmwasm_std::{BlockInfo, Timestamp};
use cw_multi_test::{no_init, AppBuilder};

Expand Down
15 changes: 9 additions & 6 deletions src/pages/cw-multi-test/blocks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ block properties (such as height and timestamp) to test delays on the blockchain

(some description)

- `App::default`
- `block_info`
- `App::default{:rust}`
- `app.block_info{:rust}`

```rust showLineNumbers {4, 7} /block_info/
use cw_multi_test::App;
Expand All @@ -47,8 +47,8 @@ assert_eq!("cosmos-testnet-14002", block.chain_id);

(some description)

- `App::set_block`
- `cosmwasm_std::BlockInfo`
- `app::set_block{:rust}`
- `cosmwasm_std::BlockInfo{:rust}`

```rust showLineNumbers {8-12} /set_block/
use cosmwasm_std::{BlockInfo, Timestamp};
Expand Down Expand Up @@ -81,8 +81,8 @@ assert_eq!("starship-testnet", block.chain_id);

(some description)

- `App::update_block`
- `next_block`
- `app::update_block{:rust}`
- `next_block{:rust}`

```rust showLineNumbers {7} /update_block/
use cw_multi_test::{App, next_block};
Expand Down Expand Up @@ -112,6 +112,9 @@ assert_eq!("cosmos-testnet-14002", block.chain_id);

(some description)

- `app.update_block{:rust}`
- `|block|{}{:rust}`

```rust showLineNumbers {7-10} /update_block/
use cw_multi_test::App;

Expand Down

0 comments on commit 23b97f5

Please sign in to comment.