-
Notifications
You must be signed in to change notification settings - Fork 186
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
Cast default RPC providers #2855
base: master
Are you sure you want to change the base?
Conversation
9429b14
to
820a442
Compare
820a442
to
9fe7ffb
Compare
9fe7ffb
to
1300d99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't an alias for the default devnet URL be also convenient? Did you consider adding it?
crates/sncast/src/helpers/rpc.rs
Outdated
FreeProvider::Blast => { | ||
"https://starknet-mainnet.public.blastapi.io/rpc/v0_7".to_string() | ||
} | ||
FreeProvider::Voyager => "https://free-rpc.nethermind.io/mainnet-juno".to_string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably version should be added here as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -44,7 +44,7 @@ pub struct Create { | |||
pub salt: Option<Felt>, | |||
|
|||
/// If passed, a profile with provided name and corresponding data will be created in snfoundry.toml | |||
#[clap(long)] | |||
#[clap(long, conflicts_with = "network")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding profile should be possible if the account is created using network alias
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The profile stores the provider url in the Scarb.toml
. If we allow this, we'll be adding URL of the free providers to users' Scarb.toml files which I though is not ideal.
Co-authored-by: Franciszek Job <[email protected]> Co-authored-by: kkawula <[email protected]>
Co-authored-by: Franciszek Job <[email protected]>
…-cast-default-urs
Closes #2708
Introduced changes
sncast
under--network
flag--network
flag to--network-name
insncast account delete
andsncast account import
due to conflict with the added flagChecklist
CHANGELOG.md