diff --git a/crates/examples/examples/pjs.rs b/crates/examples/examples/pjs.rs index 1fd7f671c4b3bf3baea66907d1ff029a3eac6f76..a1681e6103295c13fee399ac769ed73cbc288c51 100644 --- a/crates/examples/examples/pjs.rs +++ b/crates/examples/examples/pjs.rs @@ -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(())