Skip to content

Conversation

cffls
Copy link
Collaborator

@cffls cffls commented Sep 21, 2025

Description

Include the script attached to a UTxO in the calculation of txn fees.

Fixes: #461

Breaking changes
Exclude UTxOs with scripts in UTxO selection. With this change, all UTxOs with script attached to their output could only be spent by explicitly calling builder.add_input(utxo). The rationale is that we don't want a reference script to be randomly selected and spent by txbuilder without the knowledge of users.

Copy link

codecov bot commented Sep 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.80%. Comparing base (a9442be) to head (90d7f64).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #462      +/-   ##
==========================================
+ Coverage   89.78%   89.80%   +0.02%     
==========================================
  Files          33       33              
  Lines        4884     4886       +2     
  Branches      737      738       +1     
==========================================
+ Hits         4385     4388       +3     
  Misses        320      320              
+ Partials      179      178       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cffls cffls merged commit 2de335e into main Sep 21, 2025
24 checks passed
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.

Error in spending utxos with reference script

1 participant