Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Replaced the addTxIn constraint with mustSpendOutputFromTheScript #436

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

koslambrou
Copy link
Contributor

@koslambrou koslambrou commented Apr 28, 2022

The addTxIn is defined in a way to mostly be used as an accumulator in a fold. Better way is to simply define it as a smart constructor for creating a constraint, and constraints can be combined using the Semigroup instances.

Pre-submit checklist:

  • Branch
    • Tests are provided (if possible)
    • Commit sequence broadly makes sense
    • Key commits have useful messages
    • Relevant tickets are mentioned in commit messages
    • Formatting, materialized Nix files, PNG optimization, etc. are updated
  • PR
    • Self-reviewed the diff
    • Useful pull request description
    • Reviewer requested

@koslambrou koslambrou requested a review from a user April 28, 2022 00:11
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@koslambrou koslambrou merged commit 27641e0 into main Apr 28, 2022
@koslambrou koslambrou deleted the scp-3876-must-spend-output-from-the-script branch April 28, 2022 11:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant