Skip to content

Commit

Permalink
fix: input capacity can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 8, 2019
1 parent 2990891 commit 2d80fa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class TransactionsService {
}
return false
})
.map(i => BigInt(i.capacity))
.map(i => BigInt(i.capacity || 0))
.reduce((result, c) => result + c, BigInt(0))
const value: bigint = outputCapacities - inputCapacities
return {
Expand Down

0 comments on commit 2d80fa8

Please sign in to comment.