Skip to content

Commit c7707dd

Browse files
committed
fixup! fix(cardano-services): don't fetch assets for collateralReturn as if it was an output
1 parent 649430b commit c7707dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cardano-services/src/ChainHistory/DbSyncChainHistory/ChainHistoryBuilder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ export class ChainHistoryBuilder {
263263
if (result.rows.length === 0) return [];
264264

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

0 commit comments

Comments
 (0)