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

Default account mechanism for sncast #2695

Open
cptartur opened this issue Nov 20, 2024 · 1 comment
Open

Default account mechanism for sncast #2695

cptartur opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
feature New feature request/description sncast

Comments

@cptartur
Copy link
Member

Currently, --account must must be always provided in sncast. It can be done through CLI or snfoundry.toml file.

#2221 will allow defining a default account for all sncast projects. This is not very well integrated with our account commands though.

Add an interactive prompt to account import and account create that will prompt the user to make the account they imported default. It should be something like this

> Do you want to set the imported (created) account as default?
Yes
No
Don't ask again

On selecting Yes, user should be informed that the default was stored in global config and how to find/change it.

Additionally, account list should indicate which account is set as a default.

If using sncast command which requires --account, in case the flag is missing, the output should be updated to provide an information about setting the default account.

@cptartur cptartur added feature New feature request/description sncast labels Nov 20, 2024
@cptartur cptartur moved this to Backlog in Starknet foundry Nov 20, 2024
@github-actions github-actions bot added the new label Nov 20, 2024
@cptartur cptartur removed the new label Nov 20, 2024
@codeWhizperer
Copy link

@cptartur can I work on this?

@cptartur cptartur moved this from Backlog to TODO in Starknet foundry Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request/description sncast
Projects
Status: TODO
Development

No branches or pull requests

3 participants