-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Issue Running Motsu #459
Comments
Hi @rauljordan, and thanks for submitting a bug report! Which version of motsu are you using? Also could you provide the full repro steps, or an online example? |
hi @0xNeshi this happens in the current main branch of this repo
On rustc 1.83.0-nightly (4ac7bcbaa 2024-09-04), which is defined in the rust-toolchain.toml |
@rauljordan go to the root of the project, and run: cargo test --all-features finance Let me know if this worked for you |
Thanks @0xNeshi this worked. Do you have some pointers on how I can get the same to run in the stylus-hello-world repo? What features need to be set in the Cargo.toml and command to use [package]
name = "stylus-hello-world"
version = "0.1.9"
edition = "2021"
license = "MIT OR Apache-2.0"
homepage = "https://github.com/OffchainLabs/stylus-hello-world"
repository = "https://github.com/OffchainLabs/stylus-hello-world"
keywords = ["arbitrum", "ethereum", "stylus", "alloy"]
description = "Stylus hello world example"
[dependencies]
alloy-primitives = "=0.7.6"
alloy-sol-types = "=0.7.6"
mini-alloc = "0.4.2"
stylus-sdk = "0.6.0"
hex = "0.4.3"
dotenv = "0.15.0"
[dev-dependencies]
tokio = { version = "1.12.0", features = ["full"] }
ethers = "2.0"
eyre = "0.6.8"
openzeppelin-stylus = { path = "../rust-contracts-stylus/contracts", features = ["std"] }
motsu = { path = "../rust-contracts-stylus/lib/motsu" }
motsu-proc = { path = "../rust-contracts-stylus/lib/motsu-proc" }
[features]
export-abi = ["stylus-sdk/export-abi"]
debug = ["stylus-sdk/debug"]
[[bin]]
name = "stylus-hello-world"
path = "src/main.rs"
[lib]
crate-type = ["lib", "cdylib"]
[profile.release]
codegen-units = 1
strip = true
lto = true
panic = "abort"
opt-level = "s" |
@rauljordan sorry for the late reply. You seem to have downloaded motsu and the contracts library locally and linked them manually. [dependencies]
# ...
openzeppelin-stylus = "0.1.1" # we're releasing 0.2.0 soon!
# if you want the latest contracts, link it like:
# openzeppelin-stylus = { git = "https://github.com/OpenZeppelin/rust-contracts-stylus" }
[dev-dependencies]
# ...
motsu = "0.2.1" You can now use Unrelated to In the meantime, you can copy/paste the changes from the PR into your project and run Let me know if there's anything more I can do to help! |
@rauljordan just checking in, are you still having issues with motsu? |
Closing the issue as the fix has been merged, and the issue should no longer be appearing. |
What happened?
When doing
cargo test --lib
in the stylus-hello-world repo with a simple motsu exampleplatform
Expected behavior
Expected tests to run properly
Contribution Guidelines
The text was updated successfully, but these errors were encountered: