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

Tried to use the kadena account details command to get account details for a gas station principal account (c:) and crashed #2710

Open
3 of 4 tasks
lsgunnlsgunn opened this issue Dec 3, 2024 · 1 comment
Labels
bug Something isn't working

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.17.0

What package is the bug report about?

@kadena/kadena-cli

Describe the bug

Describe the issue:
I created a capability guarded gas station principal account.
Maybe this doesn't work because it was created with a Chainweaver wallet account instead of a CLI-created account (though the wallet is imported into the CLI).

Error stacktrace:
TypeError: Cannot read properties of undefined (reading 'map')
at file:///usr/local/lib/node_modules/@kadena/kadena-cli/lib/commands/account/commands/accountDetails.js:91:32
at Array.map ()
at generateTableForAccountDetails (file:///usr/local/lib/node_modules/@kadena/kadena-cli/lib/commands/account/commands/accountDetails.js:82:27)
at file:///usr/local/lib/node_modules/@kadena/kadena-cli/lib/commands/account/commands/accountDetails.js:139:23
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Command. (file:///usr/local/lib/node_modules/@kadena/kadena-cli/lib/utils/createCommand.js:132:28)
at async Command.parseAsync (/usr/local/lib/node_modules/@kadena/kadena-cli/node_modules/commander/lib/command.js:936:5)
at async main (file:///usr/local/lib/node_modules/@kadena/kadena-cli/lib/index.js:16:5)

Steps to reproduce the behavior

Executed command:
kadena account details --account="c:J1yaCWrdEbhKekMRhF5WjOgvzUayxTD24q7UWHwaa9I" --fungible="coin" --network="devnet" --chain-ids="3"

What did you expect to happen?

When I run coin.details in the REPL or using a display function, I get a result like this:
{"account": "c:J1yaCWrdEbhKekMRhF5WjOgvzUayxTD24q7UWHwaa9I","balance": 0.0,"guard": CapabilityGuard {name: free.test-gas.ALLOW_GAS,args: [],pactId: }}

Participation

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

Thank you for the report, we have added it to our internal issue tracker.

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

No branches or pull requests

2 participants