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] - Not possible to spend output with plutus reference script attached from vkey address #4057

Closed
catch-21 opened this issue Jun 16, 2022 · 3 comments
Labels
bug Something isn't working comp: ledger era: babbage priority: critical Requires immediate attention. Critical issue that needs to be fixed ASAP and released as hotfix. priority highest issues to be worked on immediately type: blocker Major issue, the tagged version cannot be released user type: internal Created by an IOG employee Vasil_blocker Vasil

Comments

@catch-21
Copy link
Contributor

Internal/External
Internal if an IOHK staff member.

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

Summary
It is not possible to spend an output at a key witness address if it has a plutus reference script attached. This problem exists for both PlutusV1 and PlutusV2 reference scripts. There is no problem with spending a simple script in this scenario.

Steps to reproduce
Steps to reproduce the behaviour:

  1. Create an output at your own key witness address (not a script address) that has a plutus reference script attached
  2. Create a transaction to spend the output using your signing key as witness (no plutus-related cli flags required)

**Actual result((

The following error is seen on submit:
Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (PPViewHashesDontMatch SNothing (SJust (SafeHash "8ee004f99373941d6cbee99aab615d0c7fbab451faa9f115ef4587d66d0a77b5"))))])

Expected behavior
Output can be spent and the reference script is removed from ledger state.

System info (please complete the following information):

  • OS Name: 20.04.4 LTS (Focal Fossa)
  • Node/Cli version: 6471c31
@CarlosLopezDeLara
Copy link
Contributor

More details here--> https://input-output.atlassian.net/browse/GCD-474

@catch-21
Copy link
Contributor Author

Another scenario that produces PPViewHashesDontMatch SNothing (SJust (SafeHash "8ee004f99373941d6cbee99aab615d0c7fbab451faa9f115ef4587d66d0a77b5")) is when attempting to spend an output at vkey address that has no reference script or inline datum attached but also referencing an output that has a PlutusV2 reference script attached.

Basically, a normal spend but using --read-only-tx-in-reference on output that has a PlutusV2 reference script.

@CarlosLopezDeLara
Copy link
Contributor

fixed by IntersectMBO/cardano-ledger#2878

@dorin100 dorin100 added user type: internal Created by an IOG employee comp: ledger era: babbage type: blocker Major issue, the tagged version cannot be released priority: critical Requires immediate attention. Critical issue that needs to be fixed ASAP and released as hotfix. labels Oct 21, 2022
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: ledger era: babbage priority: critical Requires immediate attention. Critical issue that needs to be fixed ASAP and released as hotfix. priority highest issues to be worked on immediately type: blocker Major issue, the tagged version cannot be released user type: internal Created by an IOG employee Vasil_blocker Vasil
Projects
None yet
Development

No branches or pull requests

3 participants