diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index 27c522a3..e6c2a725 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -889,9 +889,9 @@ WalletDB.prototype.saveAccount = function saveAccount(account) { * @returns {Promise} - Returns Boolean. */ -WalletDB.prototype.hasAccount = co(function* hasAccount(wid, index) { - return yield this.db.has(layout.a(wid, index)); -}); +WalletDB.prototype.hasAccount = function hasAccount(wid, index) { + return this.db.has(layout.a(wid, index)); +}; /** * Lookup the corresponding account name's index.