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

Generate default name when using account import #2581

Open
franciszekjob opened this issue Oct 15, 2024 · 0 comments
Open

Generate default name when using account import #2581

franciszekjob opened this issue Oct 15, 2024 · 0 comments
Labels
feature New feature request/description ODHack9 Label for tasks to be done in the ODHack October sncast

Comments

@franciszekjob
Copy link
Collaborator

franciszekjob commented Oct 15, 2024

Which component is your feature related to?

Cast

Feature Request

When using account import we should be able to use it without passing name which is currently required. Cast should use default (available) or automatically generated name.

Current usage

sncast account import \
    --name abc111 \
    --address 0x1bbc22958cbc7a37bf8d787fc693ec296c0f46834fe6027054e3fb47d3edf75 \
    --private-key 0x1 \
    --type oz  \
    --url http://127.0.0.1:5050/rpc

Usage after implementation

sncast account import \
    --address 0x1bbc22958cbc7a37bf8d787fc693ec296c0f46834fe6027054e3fb47d3edf75 \
    --private-key 0x1 \
    --type oz  \
    --url http://127.0.0.1:5050/rpc

Both command such succeed with such output:

command: account import
add_profile: --add-profile flag was not set. No profile added to snfoundry.toml
@franciszekjob franciszekjob added this to the Cast UX improvements milestone Oct 15, 2024
@cptartur cptartur added feature New feature request/description and removed new labels Oct 17, 2024
@franciszekjob franciszekjob added the ODHack9 Label for tasks to be done in the ODHack October label Oct 21, 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 ODHack9 Label for tasks to be done in the ODHack October sncast
Projects
Status: Triage
Development

No branches or pull requests

2 participants