Added additional tests for GET publickey

This commit is contained in:
Chris Troutner
2020-05-03 15:57:21 -07:00
parent f44229afe3
commit 40cf87fa62
4 changed files with 133 additions and 8 deletions
+2 -1
View File
@@ -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.')
}