Skip to content

Commit 90cc07a

Browse files
committed
fix(cardano-services): don't fetch assets for collateralReturn as if it was an output
1 parent 6e39e51 commit 90cc07a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ export class ChainHistoryBuilder {
261261
if (result.rows.length === 0) return [];
262262

263263
const txOutIds = result.rows.flatMap((txOut) => BigInt(txOut.id));
264-
const multiAssets = await this.queryMultiAssetsByTxOut(txOutIds);
264+
const multiAssets = collateral ? new Map() : await this.queryMultiAssetsByTxOut(txOutIds);
265265
const referenceScripts = await this.queryReferenceScriptsByTxOut(result.rows);
266266

267267
return result.rows.map((txOut) =>

0 commit comments

Comments
 (0)