Skip to content

fix(builder): skip redeemer storage for native script UTxOs#340

Merged
solidsnakedev merged 3 commits into
mainfrom
fix/339-native-script-redeemer
May 9, 2026
Merged

fix(builder): skip redeemer storage for native script UTxOs#340
solidsnakedev merged 3 commits into
mainfrom
fix/339-native-script-redeemer

Conversation

@solidsnakedev
Copy link
Copy Markdown
Collaborator

When a redeemer was passed to collectFrom for a UTxO at a native script address, the redeemer was stored for all script UTxOs instead of only Plutus script UTxOs. This caused the transaction to be treated as a Plutus spend, triggering collateral selection, scriptDataHash computation, and ultimately an "associated script witness is missing" error from the node.

Changed the redeemer storage in collectFrom to iterate over plutusScriptUtxos instead of scriptUtxos, so redeemers are only tracked for inputs that actually require them. Added NativeScript count to the assembly debug log.

Fixes #339

@solidsnakedev solidsnakedev merged commit 3f98d9f into main May 9, 2026
10 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.

bug(builder): NativeScript Build Issue with Transaction and attachScript

1 participant