Skip to content

Commit

Permalink
fix: getDaoCells load dao cells except dead
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 9, 2019
1 parent c914dff commit d5ba396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/neuron-wallet/src/services/cells.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ export default class CellsService {
.getRepository(OutputEntity)
.createQueryBuilder('output')
.leftJoinAndSelect('output.transaction', 'tx')
.where(`output.status = :status AND output.daoData IS NOT NULL AND output.lockHash in (:...lockHashes) AND tx.blockNumber IS NOT NULL`, {
.where(`output.status <> :deadStatus AND output.daoData IS NOT NULL AND output.lockHash in (:...lockHashes) AND tx.blockNumber IS NOT NULL`, {
lockHashes,
status: OutputStatus.Live,
deadStatus: OutputStatus.Dead,
})
.orderBy(`CASE output.daoData WHEN '0x0000000000000000' THEN 1 ELSE 0 END`, 'ASC')
.addOrderBy('tx.timestamp', 'ASC')
Expand Down

0 comments on commit d5ba396

Please sign in to comment.