-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADP-3272] Use consistent terminology for values and fields of `Parti…
…alTx`. (#4531) ## Issue ADP-3272 ## Summary This PR: - renames the `inputs` field of a `PartialTx` to `extraUTxO`. - adjusts usages of `PartialTx` so that field names are used consistently. ## Details The updated name `extraUTxO` better reflects the fact that this field: - represents an **_extra source of UTxOs_** that can be referenced **_by_** the inputs of a partial transaction; - is **_not_** a set of inputs, and should **_not_** be confused with the partial transaction inputs themselves. In addition, this PR adjusts various places that pattern match on `PartialTx` values to use [named field puns](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/record_puns.html) instead of positional pattern matching. This approach helps to maintain consistency of terminology -- if later on we rename any of the fields of a `PartialTx`, the compiler will remind us to update these pattern matches.
- Loading branch information
Showing
3 changed files
with
48 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.