Skip to content

Commit 50cdd54

Browse files
committed
refactor(cardano-services): remove useless sort of collateral output while providing transactions
1 parent b184c0b commit 50cdd54

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,7 @@ export class DbSyncChainHistoryProvider extends DbSyncProvider() implements Chai
139139
const txInputs = inputs.filter((input) => input.txInputId === txId).map(mapTxIn);
140140
const txCollaterals = collaterals.filter((col) => col.txInputId === txId).map(mapTxIn);
141141
const txOutputs = orderBy(outputs.filter((output) => output.txId === txId).map(mapTxOut), ['index']);
142-
const txCollateralOutputs = orderBy(collateralOutputs.filter((output) => output.txId === txId).map(mapTxOut), [
143-
'index'
144-
]);
142+
const txCollateralOutputs = collateralOutputs.filter((output) => output.txId === txId).map(mapTxOut);
145143
const inputSource: Cardano.InputSource = tx.valid_contract
146144
? Cardano.InputSource.inputs
147145
: Cardano.InputSource.collaterals;

0 commit comments

Comments
 (0)