Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zombienet-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
zombienet-sdk
Commits
b58f4ea0
Unverified
Commit
b58f4ea0
authored
1 year ago
by
Javier Viola
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
get manifest_dir from env (#141)
Small fix for `pjs` example.
parent
76a489ea
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crates/examples/examples/pjs.rs
+5
-1
5 additions, 1 deletion
crates/examples/examples/pjs.rs
with
5 additions
and
1 deletion
crates/examples/examples/pjs.rs
+
5
−
1
View file @
b58f4ea0
...
...
@@ -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
(())
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment