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] - SimpleScriptV1 in reference script UTxO is reported as SimpleScriptV2 #4261

Closed
mkoura opened this issue Aug 3, 2022 · 0 comments · Fixed by #4763
Closed

[BUG] - SimpleScriptV1 in reference script UTxO is reported as SimpleScriptV2 #4261

mkoura opened this issue Aug 3, 2022 · 0 comments · Fixed by #4763
Assignees
Labels
bug Something isn't working comp: cardano-cli era: babbage tag: 1.35.0-rc3 type: bug Something is not working user type: internal Created by an IOG employee Vasil wontfix This will not be worked on

Comments

@mkoura
Copy link
Contributor

mkoura commented Aug 3, 2022

Internal

Area
Other Any other topic (Delegation, Ranking, ...).

Summary
For a UTxO with SimpleScriptV1, the output of query utxo reports the script as SimpleScriptV2.
E.g. for SimpleScriptV1 like

{
    "keyHash": "ca42373873e057dee3201a74a2ecd58a1680a319332f915cd28fa38e",
    "type": "sig"
}

the query output is

$ cardano-cli query utxo --tx-in "eb1f9c60dde3db8281de6c8fc665930119a7f29b21b8f4e2bde9c4823294b32f#0" --testnet-magic 42  --out-file /dev/stdout
{
    "eb1f9c60dde3db8281de6c8fc665930119a7f29b21b8f4e2bde9c4823294b32f#0": {
        "address": "addr_test1vr9yydecw0s90hhryqd8fghv6k9pdq9rryejly2u62868rsj8xlyk",
        "datum": null,
        "datumhash": null,
        "inlineDatum": null,
        "referenceScript": {
            "script": {
                "cborHex": "8200581cca42373873e057dee3201a74a2ecd58a1680a319332f915cd28fa38e",
                "description": "",
                "type": "SimpleScriptV2"
            },
            "scriptLanguage": "SimpleScriptLanguage SimpleScriptV2"
        },
        "value": {
            "lovelace": 4000000
        }
    }
}

Expected behavior
The script is reported as "SimpleScriptV1".

System info (please complete the following information):


Acceptance Criteria

  • For a UTxO with SimpleScriptV1, the output of query utxo reports SimpleScriptV1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working comp: cardano-cli era: babbage tag: 1.35.0-rc3 type: bug Something is not working user type: internal Created by an IOG employee Vasil wontfix This will not be worked on
Projects
None yet
5 participants