Skip to content
Snippets Groups Projects
Unverified Commit b58f4ea0 authored by Javier Viola's avatar Javier Viola Committed by GitHub
Browse files

get manifest_dir from env (#141)

Small fix for `pjs` example.
parent 76a489ea
Branches
No related merge requests found
......@@ -44,9 +44,13 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("parachains registered: {:?}", paras);
let manifest_dir = env!("CARGO_MANIFEST_DIR");
// run pjs with file
let _ = alice
.pjs_file("./examples/pjs_transfer.js", vec![json!("//Alice")])
.pjs_file(
format!("{}/{}", manifest_dir, "examples/pjs_transfer.js"),
vec![json!("//Alice")],
)
.await?;
Ok(())
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment