Skip to content

Commit 2d80fa8

Browse files
committed
fix: input capacity can be null
1 parent 2990891 commit 2d80fa8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/neuron-wallet/src/services/tx/transaction-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export class TransactionsService {
184184
}
185185
return false
186186
})
187-
.map(i => BigInt(i.capacity))
187+
.map(i => BigInt(i.capacity || 0))
188188
.reduce((result, c) => result + c, BigInt(0))
189189
const value: bigint = outputCapacities - inputCapacities
190190
return {

0 commit comments

Comments
 (0)