mirror of
https://github.com/fullstack-cash/bch-api.git
synced 2026-09-22 01:02:05 -07:00
Added additional tests for GET publickey
This commit is contained in:
@@ -120,7 +120,8 @@ class Encryption {
|
||||
const txHistory = balance.txids
|
||||
// console.log(`txHistory: ${JSON.stringify(txHistory, null, 2)}`)
|
||||
|
||||
if (txHistory.length === 0) {
|
||||
// throw error if there is no transaction history.
|
||||
if (!txHistory || txHistory.length === 0) {
|
||||
throw new Error('No transaction history.')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user