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

[BUG] - Script data json files doesn't actually support "string" #3129

Open
catch-21 opened this issue Aug 26, 2021 · 2 comments
Open

[BUG] - Script data json files doesn't actually support "string" #3129

catch-21 opened this issue Aug 26, 2021 · 2 comments
Labels
Alonzo/Plutus Relates to the Alonzo era/Plutus core alonzo-purple Relates to the Alonzo Purple Testnet bug Something isn't working comp: cardano-cli era: alonzo type: bug Something is not working user type: internal Created by an IOG employee

Comments

@catch-21
Copy link
Contributor

Internal/External
Internal if an IOHK staff member.

Area
Plutus Related to Plutus Scripts (Alonzo).

Summary
When attempting to use a script data file with string we see an error indicating that string is actually supported.

Steps to reproduce

  1. cardano-cli transaction hash-script-data --script-data-file test_string.datum where file contains {"string":"test"}
  2. Observe error:
    Expected a single field named "int", "bytes", "string", "list" or "map".
    Unexpected object field(s): {"string":"test"}

Expected behavior
Either it converts from string to bytestring or we don't say we support "string"

System info

  • Node/Cli version: tag 1.29.0-rc3
@catch-21 catch-21 added bug Something isn't working alonzo-purple Relates to the Alonzo Purple Testnet labels Aug 26, 2021
@catch-21 catch-21 added the Alonzo/Plutus Relates to the Alonzo era/Plutus core label Sep 3, 2021
@dorin100 dorin100 added type: bug Something is not working user type: internal Created by an IOG employee comp: cardano-cli era: alonzo labels Oct 21, 2022
@Jimbo4350
Copy link
Contributor

Closing this. If this is still relevant please reopen.

@catch-21
Copy link
Contributor Author

Still relevant. There's even a PR to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Alonzo/Plutus Relates to the Alonzo era/Plutus core alonzo-purple Relates to the Alonzo Purple Testnet bug Something isn't working comp: cardano-cli era: alonzo type: bug Something is not working user type: internal Created by an IOG employee
Projects
None yet
Development

No branches or pull requests

3 participants