Skip to content

Commit

Permalink
Update motsu to 0.2.1 (#4)
Browse files Browse the repository at this point in the history
* upgrade motsu

* update readme

* docs: remove redundant space

---------

Co-authored-by: Nenad <[email protected]>
  • Loading branch information
ggonzalez94 and 0xNeshi authored Dec 17, 2024
1 parent 36e5241 commit e59f9c6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ alloy-sol-types = { version = "=0.7.6", default-features = false }

# members
motsu = { path = "crates/motsu" }
motsu-proc = { path = "crates/motsu-proc", version = "0.2.0" }
motsu-proc = { path = "crates/motsu-proc", version = "0.2.1" }

[profile.release]
codegen-units = 1
Expand Down
9 changes: 8 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ Japanese -- we hold a stylus in our hand.

### Usage

Annotate tests with `#[motsu::test]` instead of `#[test]` to get access to VM
You can import `motsu` from crates.io by adding the following line to your `Cargo.toml`:

```toml
[dev-dependencies]
motsu = "0.2.1"
```

Then, when writing tests, use `#[motsu::test]` instead of `#[test]` to get access to VM
affordances.

Note that we require contracts to implement `stylus_sdk::prelude::StorageType`.
Expand Down
2 changes: 1 addition & 1 deletion crates/motsu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ categories = ["development-tools::testing", "cryptography::cryptocurrencies"]
keywords = ["arbitrum", "ethereum", "stylus", "unit-tests", "tests"]
license.workspace = true
repository.workspace = true
version = "0.2.0"
version = "0.2.1"

[dependencies]
const-hex.workspace = true
Expand Down

0 comments on commit e59f9c6

Please sign in to comment.