Skip to content

Commit

Permalink
chore: update manual spawn readme (#358)
Browse files Browse the repository at this point in the history
updates the readme to support latest
  • Loading branch information
dndll authored Jun 26, 2024
1 parent 47941f0 commit f97b916
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/manually-spawned-sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ In workspaces, to connect to our manually launched node, all we have to do is ad
fn main() {
let worker = workspaces::sandbox()
.rpc_addr("http://localhost:3030")
.home_dir("/home/user/.near-sandbox-home")
.validator_key(workspaces::network::ValidatorKey::HomeDir(
"/.near/validator_key.json".into(),
))
.await?;

Ok(())
Expand Down

0 comments on commit f97b916

Please sign in to comment.