Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
StanislavBreadless committed Dec 18, 2024
1 parent 3da4f79 commit fa83edd
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions zkstack_cli/crates/zkstack/src/commands/chain/gateway_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,23 +146,6 @@ pub fn encode_ntv_asset_id(l1_chain_id: U256, addr: Address) -> H256 {
H256(keccak256(&encoded_data))
}

fn replace_in_file(file_path: &str, target: &str, replacement: &str) -> std::io::Result<()> {
// Read the file content
let content = std::fs::read_to_string(file_path)?;

// Replace all occurrences of the target substring
let modified_content = content.replace(target, replacement);

// Write the modified content back to the file
let mut file = std::fs::OpenOptions::new()
.write(true)
.truncate(true) // Clear the file before writing
.open(file_path)?;

file.write_all(modified_content.as_bytes())?;
Ok(())
}

async fn adapt_config(shell: &Shell, chain_config: ChainConfig) -> anyhow::Result<()> {
println!("Adapting config");
let mut contracts_config = chain_config.get_contracts_config()?;
Expand Down

0 comments on commit fa83edd

Please sign in to comment.