Skip to content

Commit

Permalink
fixup! fix(cardano-services): don't fetch assets for collateralReturn…
Browse files Browse the repository at this point in the history
… as if it was an output
  • Loading branch information
iccicci committed Sep 11, 2024
1 parent 649430b commit c7707dd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ export class ChainHistoryBuilder {
if (result.rows.length === 0) return [];

const txOutIds = result.rows.flatMap((txOut) => BigInt(txOut.id));
// In case or collateralReturn requests (collateral = true) assets in the output can't be read as for regular outputs:
// In case of collateralReturn requests (collateral = true) assets in the output can't be read as for regular outputs:
// db-sync stores assets from collateral outputs in collateral_tx_out.multi_assets_descr column rather than in
// ma_tx_out table like for regular outputs. To have a complete collateralReturn, given column should be red and parsed.
// ma_tx_out table like for regular outputs. To have a complete collateralReturn, given column should be read and parsed.
const multiAssets = collateral ? new Map() : await this.queryMultiAssetsByTxOut(txOutIds);
const referenceScripts = await this.queryReferenceScriptsByTxOut(result.rows);

Expand Down

0 comments on commit c7707dd

Please sign in to comment.