Skip to content

Commit

Permalink
Fix offset
Browse files Browse the repository at this point in the history
  • Loading branch information
matias-gonz committed Sep 27, 2024
1 parent e174c3b commit 9ed7664
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zk_toolbox/crates/zk_inception/src/utils/ports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ impl EcosystemPorts {
) -> Result<()> {
let file_contents = shell.read_file(file_path)?;
let mut value: Value = serde_yaml::from_str(&file_contents)?;
self.traverse_allocate_ports_in_yaml(&mut value, chain_number)?;
let offset = (chain_number - 1) * 100;
self.traverse_allocate_ports_in_yaml(&mut value, offset)?;
let new_contents = serde_yaml::to_string(&value)?;
if new_contents != file_contents {
shell.write_file(file_path, new_contents)?;
Expand Down

0 comments on commit 9ed7664

Please sign in to comment.