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(cli)!: remove default chain ID, endpoint URL #1792

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SuperFluffy
Copy link
Member

@SuperFluffy SuperFluffy commented Nov 7, 2024

Summary

Removes the default RPC URL and chain IDs the CLI.

Background

It is a safety issue to interact with the wrong chain, and so these defaults should not be enshrined in the app.

Changes

  • Remove the default value from all --sequencer.chain-id arguments.
  • Remove the default value from all --sequencer-url arguments.

Testing

All smoke tests already explicitly provided chain ID and RPC URL and thus keep working.

Ran manually: omitting either arguments now results in errors like this:

error: the following required arguments were not provided:
  --sequencer-url <SEQUENCER_URL>

Changelogs

"Changelogs updated."

Breaking Changelist

  • All invocations of the CLI for interacting with Astria network astria-dusk-10 at "https://rpc.sequencer.dusk-10.devnet.astria.org" no longer work. Chain ID and RPC URL now need to be set explicitly by providing an environment variable or command line argumient.

Invocations that already had the chain ID and RPC URL present continue working unchanged.

@SuperFluffy SuperFluffy marked this pull request as ready for review November 7, 2024 11:56
@SuperFluffy SuperFluffy requested a review from a team as a code owner November 7, 2024 11:56
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