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

Bolt-cli: Add dry-run flag for developmental/testing #756

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

0ex-d
Copy link
Contributor

@0ex-d 0ex-d commented Jan 31, 2025

Improvements:

  • Add -d, --dry-run flag for bolt-cli: When provided commands will "simulate" actual behavior, for instance when making RPC calls or executing smart contracts without broadcasting on net.
  • Spin Anvil instance for use cases like testing (we can get rid of explicit declaration in test):
    async fn test_register_validators() {
    let _ = tracing_subscriber::fmt::try_init();
    let rpc_url = "https://holesky.drpc.org";
    let anvil = Anvil::default().fork(rpc_url).spawn();
    let anvil_url = Url::parse(&anvil.endpoint()).expect("valid URL");
    let provider = ProviderBuilder::new().on_http(anvil_url.clone());

Closes #416

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.

feat(cli): add --dry-run flag for important commands
1 participant