Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions haskell-src/exec/Chainweb/Server.hs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ dbToApiTxSummary s contHist = TxSummary
, _txSummary_continuation = unPgJsonb <$> dtsContinuation s
, _txSummary_result = maybe TxFailed (const TxSucceeded) $ dtsGoodResult s
, _txSummary_initialCode = chCode contHist
, _txSummary_previousSteps = V.toList (chSteps contHist) <$ chCode contHist
, _txSummary_previousSteps = V.toList (fromMaybe mempty $ chSteps contHist) <$ chCode contHist
}

searchTxs
Expand Down Expand Up @@ -385,7 +385,7 @@ toApiTxDetail tx contHist blk evs signers sigs = TxDetail
, _txDetail_success = isJust $ _tx_goodResult tx
, _txDetail_events = map toTxEvent evs
, _txDetail_initialCode = chCode contHist
, _txDetail_previousSteps = V.toList (chSteps contHist) <$ chCode contHist
, _txDetail_previousSteps = V.toList (fromMaybe mempty $ chSteps contHist) <$ chCode contHist
, _txDetail_signers = signers
, _txDetail_sigs = sigs
}
Expand Down
2 changes: 1 addition & 1 deletion haskell-src/lib/ChainwebDb/Queries.hs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ toDbTxSummary Transaction{..} = DbTxSummary

data ContinuationHistoryT f = ContinuationHistory
{ chCode :: C f (Maybe Text)
, chSteps :: C f (Vector Text)
, chSteps :: C f (Maybe (Vector Text))
} deriving (Generic, Beamable)

type ContinuationHistory = ContinuationHistoryT Identity
Expand Down
Loading