We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3f3c3a commit 6262511Copy full SHA for 6262511
src/rust-cli/main.rs
@@ -72,9 +72,11 @@ enum Commands {
72
async fn main() -> anyhow::Result<()> {
73
let cli = Cli::parse();
74
let mut rpc_params = jsonrpsee::core::params::ObjectParams::new();
75
- rpc_params
76
- .insert("network", &cli.network)
77
- .context("add network param")?;
+ if let Some(network_value) = &cli.network {
+ rpc_params
+ .insert("network", network_value)
78
+ .context("add network param")?;
79
+ }
80
81
match &cli.command {
82
Some(Commands::Debug { command }) => {
0 commit comments