Skip to content

Commit

Permalink
fix computation of snos config using the rollup chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
glihm committed Feb 12, 2025
1 parent 6d58776 commit f2596cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/katana/src/cli/init/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ impl InitArgs {
Arc::new(JsonRpcClient::new(HttpTransport::new(settlement_url.clone())));
let l1_chain_id = l1_provider.chain_id().await.unwrap();

let chain_id = cairo_short_string_to_felt(&id).unwrap();

Check warning on line 125 in bin/katana/src/cli/init/mod.rs

View check run for this annotation

Codecov / codecov/patch

bin/katana/src/cli/init/mod.rs#L125

Added line #L125 was not covered by tests

let deployment_outcome = if let Some(contract) = self.settlement_contract {
let chain_id = cairo_short_string_to_felt(&id).unwrap();
deployment::check_program_info(chain_id, contract.into(), &l1_provider)
.await
.unwrap();
Expand All @@ -145,7 +146,7 @@ impl InitArgs {
ExecutionEncoding::New,
);

deployment::deploy_settlement_contract(account, l1_chain_id).await.unwrap()
deployment::deploy_settlement_contract(account, chain_id).await.unwrap()

Check warning on line 149 in bin/katana/src/cli/init/mod.rs

View check run for this annotation

Codecov / codecov/patch

bin/katana/src/cli/init/mod.rs#L149

Added line #L149 was not covered by tests
};

Some(Ok(Outcome {
Expand Down

0 comments on commit f2596cd

Please sign in to comment.