File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ queryTxOuts txIds = do
197197 TxIdsResponse chainTxs -> Right $ foldMap (fmap (sortTxOut . fst ) . txOutRefMap) chainTxs
198198 _ -> Left " Wrong PAB response"
199199 where
200+ -- Keep values in TxOuts sorted for deterministic ToData conversion
200201 sortTxOut :: TxOut -> TxOut
201202 sortTxOut txOut = txOut {txOutValue = sortValue $ txOutValue txOut}
202203
@@ -218,6 +219,9 @@ getTxInInfos txOutRefs = do
218219 toEither :: Maybe TxInInfo -> Either Text TxInInfo
219220 toEither = maybeToRight " Couldn't find TxOut"
220221
222+ {- | Builds the TxInfo for direct Data conversion and usage "onchain"
223+ Must keep all inputs and values ordered for determinism
224+ -}
221225buildTxInfo ::
222226 forall (w :: Type ) (effs :: [Type -> Type ]).
223227 Member (PABEffect w ) effs =>
You can’t perform that action at this time.
0 commit comments