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

Fails to parse private key when importing with sncast import #2877

Open
1 task
amanusk opened this issue Jan 26, 2025 · 0 comments
Open
1 task

Fails to parse private key when importing with sncast import #2877

amanusk opened this issue Jan 26, 2025 · 0 comments
Labels
bug Something isn't working new

Comments

@amanusk
Copy link
Contributor

amanusk commented Jan 26, 2025

Which component is your bug related to?

sncast

Foundry Version

0.36.0

What operating system are you using?

Linux

What system architecture are you using?

x86

What happened

Importing an account, and providing a private key, for example,

0x01c667c232b8ee6b035b98d2294b915e12b74080d4264f829a2409b354366b6d

results in an error

error: Failed to parse value 0x01c667c232b8ee6b035b98d2294b915e12b74080d4264f829a2409b354366b6d to felt. Invalid hex value was passed

Importing the same key without the leading zero, or when directly providing it in the command line, does work

Trace

sncast account import --address 0xxxxxxxxx --type braavos --url http://192.168.1.45:9235 --name braavos_6 
Type in your private key and press enter: 
command: account import
error: Failed to parse value 0x01c667c232b8ee6b035b98d2294b915e12b74080d4264f829a2409b354366b6d to felt. Invalid hex value was passed

Is there an existing issue for this?

  • I have searched the existing issues and verified no issue exits for this problem.
@amanusk amanusk added the bug Something isn't working label Jan 26, 2025
@github-actions github-actions bot added the new label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new
Projects
Status: New
Development

No branches or pull requests

1 participant