Skip to content

Conversation

@palas
Copy link
Contributor

@palas palas commented Jan 16, 2026

Changelog

- description: |
    Removed requirement of "current treasury value" in transactions
  type:
  - compatible

Context

See #1149

How to trust this PR

Ensure that only the specified restriction was lifted and in the appropriate places. Ensure this is the right thing to do. Confirm I interpreted this message correctly: https://discord.com/channels/1136727663583698984/1239888777015590913/1364244737602879498

Checklist

  • Commit sequence broadly makes sense and commits have useful messages
  • New tests are added if needed and existing tests are updated. See Running tests for more details
  • Self-reviewed the diff

, voteFiles :: ![(VoteFile In, Maybe (ScriptRequirements Exp.VoterItem))]
, proposalFiles :: ![(ProposalFile In, Maybe (ScriptRequirements Exp.ProposalItem))]
, currentTreasuryValueAndDonation :: !(Maybe (TxCurrentTreasuryValue, TxTreasuryDonation))
, currentTreasuryValueAndDonation :: !(Maybe (Maybe TxCurrentTreasuryValue, TxTreasuryDonation))
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than having a nested Maybe convert it to a separate field instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can do that, but that would be lifting an additional restriction: that you can't have TxCurrentTreasuryValue without a TxTreasuryDonation. It wouldn't be equivalent

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah I see 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm, actually, it may be that we can lift that restriction too, @lehins says they are completely independent

@palas palas requested a review from Jimbo4350 January 17, 2026 01:12
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.

Remove requirement of "current treasury value" for transaction in build-raw command

3 participants