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 Oct 14, 2024
1 parent 4d075f0 commit f83f006
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 f83f006

Please sign in to comment.