Skip to content

Commit

Permalink
Use explicit field names when pattern matching on TxUpdate.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanknowles committed Apr 30, 2024
1 parent ffcf15b commit 8ce8ef3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1261,7 +1261,7 @@ modifyShelleyTxBody txUpdate =
(<> extraCollateral')
where
era = recentEra @era
TxUpdate extraInputs extraCollateral extraOutputs _ feeUpdate = txUpdate
TxUpdate {extraInputs, extraCollateral, extraOutputs, feeUpdate} = txUpdate
extraOutputs' = StrictSeq.fromList $ map (toLedgerTxOut era) extraOutputs
extraInputs' = Set.fromList (Convert.toLedger <$> extraInputs)
extraCollateral' = Set.fromList $ Convert.toLedger <$> extraCollateral
Expand Down

0 comments on commit 8ce8ef3

Please sign in to comment.