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

Adding an account manually, at the ChainID prompt, I typed 3 and crashed. #1870

Open
3 of 4 tasks
lsgunnlsgunn opened this issue Mar 21, 2024 · 3 comments
Open
3 of 4 tasks
Labels
bug Something isn't working no-issue-activity

Comments

@lsgunnlsgunn
Copy link
Contributor

Please confirm the following:

  • I have read the Code of Conduct
  • The bug was not reported before
  • I am using the latest version of the relevant package(s)

What operating system are you using? And what version?

darwin

What environment or browser are you using? And what version?

Node.JS v20.11.0

What package is the bug report about?

@kadena/kadena-cli

Describe the bug

Describe the issue:

Error stacktrace:
Error: Only HTTP(S) protocols are supported
at getAccountDetails (file:///Users/lisagunn/Library/pnpm/global/5/.pnpm/@kadena+kadena-cli@0.0.1-alpha.5/node_modules/@kadena/kadena-cli/lib/account/utils/getAccountDetails.js:23:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async file:///Users/lisagunn/Library/pnpm/global/5/.pnpm/@kadena+kadena-cli@0.0.1-alpha.5/node_modules/@kadena/kadena-cli/lib/account/commands/accountAddManual.js:26:11
at async Command. (file:///Users/lisagunn/Library/pnpm/global/5/.pnpm/@kadena+kadena-cli@0.0.1-alpha.5/node_modules/@kadena/kadena-cli/lib/utils/createCommand.js:119:28)
at async Command.parseAsync (/Users/lisagunn/Library/pnpm/global/5/.pnpm/commander@11.1.0/node_modules/commander/lib/command.js:936:5)
at async main (file:///Users/lisagunn/Library/pnpm/global/5/.pnpm/@kadena+kadena-cli@0.0.1-alpha.5/node_modules/@kadena/kadena-cli/lib/index.js:12:5)

Steps to reproduce the behavior

Executed command:
kadena account add-manual --account-alias="pistolas" --account-name="k:5ec41b89d323398a609ffd54581f2bd6afc706858063e8f3e8bc76dc5c35e2c0" --fungible="coin" --network="mydevnet" --chain-id="3" help

What did you expect to happen?

I expected the prompt to accept any integer 0-19.

Participation

  • I am willing to submit a pull request for this issue.
@lsgunnlsgunn lsgunnlsgunn added the bug Something isn't working label Mar 21, 2024
@realdreamer
Copy link
Contributor

@lsgunnlsgunn - can you share what's stored as part of "mydevnet" network config?

Executing the kadena network list command displays all the network config

@lsgunnlsgunn
Copy link
Contributor Author

Network   Network ID       Network Host                     Network Explorer URL                     
devnet    fast-development http://localhost:8080            http://localhost:8080/explorer           
mainnet   mainnet01        https://api.chainweb.com         https://explorer.chainweb.com/mainnet/tx/
mydevnet2 mydevnet01       https://api.chainweb.com         https://explorer.chainweb.com/mainnet/tx/
testnet   testnet04        https://api.testnet.chainweb.com https://explorer.chainweb.com/testnet/tx/

Copy link
Contributor

This issue is stale because it is open for 60 days with no activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

2 participants