Skip to content

Commit 4163f0e

Browse files
sstonepm47
andcommitted
Fixup! Update legacy InputInfo codec
Co-authored-by: Pierre-Marie Padiou <[email protected]>
1 parent 6daa73f commit 4163f0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eclair-core/src/main/scala/fr/acinq/eclair/wire/internal/channel/version0/ChannelCodecs0.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private[channel] object ChannelCodecs0 {
132132
("txOut" | txOutCodec) ::
133133
("redeemScript" | varsizebinarydata)).as[InputInfoLegacy]
134134

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

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

0 commit comments

Comments
 (0)