Skip to content

Commit

Permalink
fix: capacity null when calculate bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Nov 15, 2019
1 parent df3eb0e commit 97ee2a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/neuron-wallet/src/controllers/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default class TransactionsController {
}
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
transaction.value = value.toString()
Expand Down

0 comments on commit 97ee2a1

Please sign in to comment.