Skip to content

Commit

Permalink
Fixup! Update legacy InputInfo codec
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre-Marie Padiou <[email protected]>
  • Loading branch information
sstone and pm47 committed Nov 26, 2024
1 parent bf1d1b7 commit d560a8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ private[channel] object ChannelCodecs0 {
("txOut" | txOutCodec) ::
("redeemScript" | varsizebinarydata)).as[InputInfoLegacy]

val inputInfoCodec: Codec[InputInfo] = inputInfoLegacyCodec.xmap[InputInfo](legacy => InputInfo(legacy.outPoint, legacy.txOut, Left(legacy.redeemScript)), _ => ???).decodeOnly
val inputInfoCodec: Codec[InputInfo] = inputInfoLegacyCodec.map(legacy => InputInfo(legacy.outPoint, legacy.txOut, Left(legacy.redeemScript))).decodeOnly

private val defaultConfirmationTarget: Codec[ConfirmationTarget.Absolute] = provide(ConfirmationTarget.Absolute(BlockHeight(0)))

Expand Down

0 comments on commit d560a8c

Please sign in to comment.