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

Fix Ledger.Constraints.TxConstraints.collectFromPlutusV1ScriptFilter implementation #644

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

koslambrou
Copy link
Contributor

Made the functions Ledger.Constraints.TxConstraints.collectFromPlutusV1ScriptFilter and Ledger.Constraints.TxConstraints.collectFromTheScript as unrelated functions.

The rationale is that if someone uses collectFromPlutusV1ScriptFilter,
the constraints will fail with a TypedValidatorMissing error for
lookups, even though we're not using typed validators.

This fix was triggered by #641

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Formatting, PNG optimization, etc. are updated
  • PR
    • Self-reviewed the diff
    • Useful pull request description
    • Reference the ADR in the PR and reference the PR in the ADR (if revelant)
    • Reviewer requested

@koslambrou koslambrou requested a review from a user August 4, 2022 10:49
…sV1ScriptFilter` and `Ledger.Constraints.TxConstraints.collectFromTheScript` as unrelated functions.

The rationale is that if someone uses `collectFromPlutusV1ScriptFilter`,
the constraints will fail with a `TypedValidatorMissing` error for
lookups, even though we're not using typed validators.
@koslambrou koslambrou force-pushed the kll/fix-collectFromPlutusV1ScriptFilter branch from b2b42fc to 5c0110a Compare August 4, 2022 17:16
@koslambrou koslambrou merged commit 96c4508 into main Aug 5, 2022
@koslambrou koslambrou deleted the kll/fix-collectFromPlutusV1ScriptFilter branch August 5, 2022 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant