Skip to content

Commit

Permalink
Merge pull request #1063 from nervosnetwork/fix-input-capacities
Browse files Browse the repository at this point in the history
fix: input capacity can be null
  • Loading branch information
Keith-CY authored Nov 8, 2019
2 parents fe62f7c + 2d80fa8 commit 22ab3d8
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 22ab3d8

Please sign in to comment.