From 1cc6727de5118ecf65aa9f8311245910ed18ae4e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Wed, 1 Jun 2016 22:22:12 -0700 Subject: [PATCH] fix removeKey. --- lib/bcoin/wallet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bcoin/wallet.js b/lib/bcoin/wallet.js index b672000b..5dcbd015 100644 --- a/lib/bcoin/wallet.js +++ b/lib/bcoin/wallet.js @@ -247,7 +247,7 @@ Wallet.prototype.removeKey = function removeKey(account, key, callback) { if (!account) return callback(new Error('Account not found.')); - account.addKey(key, callback); + account.removeKey(key, callback); }, true); };