Skip to content

Commit 97ee2a1

Browse files
committed
fix: capacity null when calculate bytes
1 parent df3eb0e commit 97ee2a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/neuron-wallet/src/controllers/transactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export default class TransactionsController {
106106
}
107107
return false
108108
})
109-
.map(i => BigInt(i.capacity))
109+
.map(i => BigInt(i.capacity || 0))
110110
.reduce((result, c) => result + c, BigInt(0))
111111
const value: bigint = outputCapacities - inputCapacities
112112
transaction.value = value.toString()

0 commit comments

Comments
 (0)