We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99e5c56 commit 9089409Copy full SHA for 9089409
ouroboros-consensus/src/ouroboros-consensus/Ouroboros/Consensus/HardFork/Combinator/Embed/Nary.hs
@@ -137,8 +137,14 @@ instance Inject GenTx where
137
inject _ = injectNS' (Proxy @GenTx)
138
139
instance Inject WrapGenTxId where
140
- inject _ ix w = WrapGenTxId $ HardForkGenTxId $ OneEraGenTxId $
141
- hcollapse $ hcmap proxySingle (K . toRawTxIdHash . unwrapGenTxId) $ injectNS ix w
+ inject _ (idx :: Index xs x) =
+ case dictIndexAll (Proxy @SingleEraBlock) idx of
142
+ Dict ->
143
+ WrapGenTxId
144
+ . HardForkGenTxId
145
+ . OneEraGenTxId
146
+ . toRawTxIdHash
147
+ . unwrapGenTxId
148
149
instance Inject WrapApplyTxErr where
150
inject _ =
0 commit comments