Skip to content

Commit

Permalink
feat(cli): improve sandbox error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ryutamago authored and johnyob committed Jul 4, 2024
1 parent eefad54 commit f2eed1a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/jstz_cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,10 @@ impl Config {
}

pub fn jstz_client(&self, network_name: &Option<NetworkName>) -> Result<JstzClient> {
if let Some(NetworkName::Dev) = network_name {
self.sandbox()?;
};

let network = self.network(network_name)?;

Ok(JstzClient::new(network.jstz_node_endpoint.clone()))
Expand Down

0 comments on commit f2eed1a

Please sign in to comment.