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 <pm47@users.noreply.github.com>
  • Loading branch information
sstone and pm47 committed Oct 21, 2024
1 parent 4cc2ecb commit a35921c
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 a35921c

Please sign in to comment.