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

PR4: Empty payments smart constructors #459

Open
wants to merge 2 commits into
base: mm/tweaks-input-outputs-restructured
Choose a base branch
from

Conversation

mmontin
Copy link
Collaborator

@mmontin mmontin commented Feb 14, 2025

This PR introduces two payment smart constructors to allow paying a script with no specified value. This idea is to rely on the option txOptEnsureMinAda which should not force users to specify a value when activated.

@mmontin mmontin changed the base branch from main to mm/tweaks-input-outputs-restructured February 14, 2025 18:46
@mmontin mmontin force-pushed the mm/empty-payments-smart-constructors branch from a2a29db to 37b9596 Compare February 14, 2025 22:48
Copy link
Member

@florentc florentc left a comment

Choose a reason for hiding this comment

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

Is it worth having other smart constructors to remember to use (and maintain) when the user may just use the classic ones and provide mempty/ada 0/def or Nothing/TxSkelNoDatum themselves?

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.

2 participants