Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(zk_toolbox): Make chain create independent from ecosystem #3210

Open
wants to merge 24 commits into
base: matias/refactor-chain-commands
Choose a base branch
from

Conversation

matias-gonz
Copy link
Collaborator

What ❔

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zkstack dev fmt and zkstack dev lint.

@matias-gonz matias-gonz changed the base branch from main to matias/refactor-chain-commands October 31, 2024 19:35
…bs/zksync-era into matias/separate-chain-create
@matias-gonz matias-gonz changed the base branch from matias/refactor-chain-commands to main October 31, 2024 19:38
@matias-gonz matias-gonz changed the base branch from main to matias/refactor-chain-commands November 6, 2024 13:12
@matias-gonz matias-gonz changed the title feat(zk_toolbox): [WIP] Make chain create independent from ecosystem feat(zk_toolbox): Make chain create independent from ecosystem Nov 6, 2024
@matias-gonz matias-gonz marked this pull request as ready for review November 6, 2024 13:12
@matias-gonz matias-gonz requested a review from a team as a code owner November 6, 2024 13:12
@matias-gonz matias-gonz requested review from yorik, alexandrst88, artmakh and hatemosphere and removed request for a team November 6, 2024 13:12
…bs/zksync-era into matias/separate-chain-create
} else {
(L2ChainId::from(args.chain_id), None)
};
let internal_id = ecosystem_config.list_of_chains().len() as u32;

let internal_id = args.number_of_chains + 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's always zero in a case we don't have ecosystem config

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@Deniallugo Deniallugo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

generally looks good, please have a look closely to method visibility.
Looks like we have a lot of unnecessary public methods

…bs/zksync-era into matias/separate-chain-create
Comment on lines +111 to +115
let l1_network = l1_network.unwrap_or_else(|| {
self.l1_network.unwrap_or_else(|| {
PromptSelect::new(MSG_L1_NETWORK_PROMPT, L1Network::iter()).ask()
})
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks a bit odd. Why do we have two places for l1 network?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants