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

Signing with Kadena-cli doesn't work when the transaction comes from chainweaver #2363

Closed
3 of 4 tasks
alber70g opened this issue Jul 3, 2024 · 2 comments
Closed
3 of 4 tasks
Labels
bug Something isn't working no-issue-activity

Comments

@alber70g
Copy link
Member

alber70g commented Jul 3, 2024

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 v18.20.3

What package is the bug report about?

@kadena/kadena-cli

Describe the bug

Describe the issue:
I'm trying to sign a transaction from a Safe Transfer that I made in Chainweaver.

Error stacktrace:

ZodError: [
  {
    "code": "invalid_type",
    "expected": "array",
    "received": "object",
    "path": [
      "sigs"
    ],
    "message": "Expected array, received object"
  }
]
    at get error [as error] (file:///Users/albert/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:587:31)
    at ZodObject.parse (file:///Users/albert/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/zod/lib/index.mjs:692:22)
    at getTransactionFromFile (file:///Users/albert/Library/pnpm/global/5/.pnpm/@[email protected]/node_modules/@kadena/kadena-cli/lib/commands/tx/utils/txHelpers.js:193:50)
    at async getTransactionsFromFile (file:///Users/albert/Library/pnpm/global/5/.pnpm/@[email protected]/node_modules/@kadena/kadena-cli/lib/commands/tx/utils/txHelpers.js:270:29)
    at async file:///Users/albert/Library/pnpm/global/5/.pnpm/@[email protected]/node_modules/@kadena/kadena-cli/lib/commands/tx/utils/txSignWithWallet.js:73:48
    at async signWithWallet (file:///Users/albert/Library/pnpm/global/5/.pnpm/@[email protected]/node_modules/@kadena/kadena-cli/lib/commands/tx/utils/txSignWithWallet.js:40:21)
    at async Command.<anonymous> (file:///Users/albert/Library/pnpm/global/5/.pnpm/@[email protected]/node_modules/@kadena/kadena-cli/lib/utils/createCommand.js:132:28)
    at async Command.parseAsync (/Users/albert/Library/pnpm/global/5/.pnpm/[email protected]/node_modules/commander/lib/command.js:936:5)
    at async main (file:///Users/albert/Library/pnpm/global/5/.pnpm/@[email protected]/node_modules/@kadena/kadena-cli/lib/index.js:16:5)

Steps to reproduce the behavior

I executed the kadena tx sign command with -u safe-transfer-testnet.json. Then I selected that I want to use a wallet to sign with.

Executed command:
kadena tx sign --tx-unsigned-transaction-files="safe-transfer-testnet.json" --tx-sign-with="wallet"

What did you expect to happen?

I should be able to sign the transaction

Participation

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

github-actions bot commented Sep 1, 2024

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

@barthuijgen
Copy link
Contributor

Solved :)

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