Skip to content

Commit

Permalink
fix(deployments): correct RPC field duplication error
Browse files Browse the repository at this point in the history
Updated the RPC field in CreateToriiConfigInput to use the
cloned config directly, resolving the issue of incorrect
duplication.
  • Loading branch information
steebchen committed Nov 10, 2024
1 parent 3436079 commit c52562b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/target
torii.toml
katana.toml
2 changes: 1 addition & 1 deletion cli/src/command/deployments/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl CreateArgs {
config: Some(CreateServiceConfigInput {
katana: None,
torii: Some(CreateToriiConfigInput {
rpc: Some(config.rpc.clone().unwrap_or("".to_string())),
rpc: config.clone().rpc,
// provide world if provided
world: match &config.world {
Some(world) => format!("{:#x}", world).into(),
Expand Down

0 comments on commit c52562b

Please sign in to comment.