Skip to content

Commit

Permalink
Updated blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
DariuszDepta committed Aug 14, 2024
1 parent 0e325de commit fbc50e3
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/pages/cw-multi-test/blocks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ blockchain, like:
For this purpose, **`MultiTest`** provides several options to initialize and update the current
block properties (such as height and timestamp) to test delays on the blockchain.

(initializing default block)
## Initialization with the default block

(some description)

```rust
use cw_multi_test::App;
Expand All @@ -38,7 +40,9 @@ assert_eq!(1571797419879305533, block.time.nanos());
assert_eq!("cosmos-testnet-14002", block.chain_id);
```

(initializing custom block)
## Initialization with the custom block

(some description)

```rust
use cosmwasm_std::{BlockInfo, Timestamp};
Expand Down Expand Up @@ -67,7 +71,9 @@ assert_eq!(1723627489, block.time.seconds());
assert_eq!("starship-testnet", block.chain_id);
```

(moving to the next block with the default step)
## Generating next block with the default step

(some description)

```rust
use cw_multi_test::{App, next_block};
Expand All @@ -93,7 +99,9 @@ assert_eq!(1571797424879305533, block.time.nanos());
assert_eq!("cosmos-testnet-14002", block.chain_id);
```

(moving to the next block with custom step)
## Generating next block with custom step

(some description)

```rust
use cw_multi_test::App;
Expand Down

0 comments on commit fbc50e3

Please sign in to comment.