Skip to content

Commit

Permalink
Update unit-tests.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero authored Mar 7, 2024
1 parent e7d7059 commit 931f6bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/sdk/rust/testing/unit-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mod tests {
}
```

Where `VMContextBuilder` allows for modifying the context of the mocked blockchain to simulate the environment that a transaction would be run. The documentation for what can be modified with this context can be found [here](https://docs.rs/near-sdk/latest/near_sdk/struct.VMContext.html).
Where `VMContextBuilder` allows for modifying the context of the mocked blockchain to simulate the environment that a transaction would be run. The documentation for what can be modified with this context can be found [here](https://docs.rs/near-sdk/4.1.1/near_sdk/struct.VMContext.html).

The `testing_env!` macro will initialize the blockchain interface with the `VMContext` which is either initialized through `VMContextBuilder` or manually through itself.

Expand Down

0 comments on commit 931f6bf

Please sign in to comment.