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

Template not passed correctly with --template flag #2832

Open
4 tasks done
V-Staykov opened this issue Jan 27, 2025 · 0 comments
Open
4 tasks done

Template not passed correctly with --template flag #2832

V-Staykov opened this issue Jan 27, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@V-Staykov
Copy link

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?

Ubuntu 22.x

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

Node.js

What package is the bug report about?

@kadena/kadena-cli

Describe the bug

When I use the --template flag, I get

Failed to create transaction from template
Failed to parse template: payload: 
meta:

I debugged it and found out that the template is actually found and parsed correctly, but then a string is passed to createAndWriteTransaction. It seems to expect a template string, but instead just the name is passed, which is then split into parts and holes in getPartsAndHoles and it returns gibberish.

Steps to reproduce the behavior

use `kadena tx add --template="transfer.ktpl"

What did you expect to happen?

To find and parse the correct template.

Participation

  • I am willing to submit a pull request for this issue.
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

1 participant