Skip to content

refactor(uplc): remove three casts left by #667 and #702 - #720

Merged
solidsnakedev merged 3 commits into
mainfrom
fix/uplc-casts
Oct 28, 2026
Merged

solidsnakedev merged 3 commits into
mainfrom
fix/uplc-casts

Conversation

@solidsnakedev

Copy link
Copy Markdown
Collaborator

#667 and #702 left three type casts that compile without them: the array payload in encodeData, the Value payload in constantToJSON, and the program version passed to encodeTerm. #667 also adds the public ValueConstant type and widens DataType and ConstantValue, but its changeset says patch.

This removes the three casts. An array constant without items now fails to encode with a UPLCError instead of a TypeError. The #667 changeset moves to minor and mentions array payloads.

@solidsnakedev
solidsnakedev merged commit f2e638a into main Oct 28, 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.

1 participant