Skip to content

Commit

Permalink
Another mock
Browse files Browse the repository at this point in the history
  • Loading branch information
teodanciu committed Nov 25, 2022
1 parent 8d5d787 commit fc386db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eras/alonzo/impl/src/Cardano/Ledger/Alonzo/TxOut.hs
Expand Up @@ -294,7 +294,8 @@ pattern AlonzoTxOut addr vl dh <-
Just (Refl, dataHash32) <- encodeDataHash32 dh =
TxOut_AddrHash28_AdaOnly_DataHash32 stakeCred addr28Extra adaCompact dataHash32
AlonzoTxOut addr vl mdh =
let v = fromMaybe (error "Illegal value in txout") $ toCompact vl
let x = toCompact vl
v = fromMaybe (error "Illegal value in txout") $ x
a = compactAddr addr
in case mdh of
SNothing -> TxOutCompact' a v
Expand Down

0 comments on commit fc386db

Please sign in to comment.