allow callback in importKey.

This commit is contained in:
Christopher Jeffrey 2014-11-11 11:47:40 -08:00
parent d2df3dd534
commit 317ff8a6bd

View File

@ -814,8 +814,8 @@ Wallet.prototype.dumpKey = function(options) {
return bitcoindjs.walletDumpKey(options || {});
};
Wallet.prototype.importKey = function(options) {
return bitcoindjs.walletImportKey(options || {});
Wallet.prototype.importKey = function(options, callback) {
return bitcoindjs.walletImportKey(options || {}, callback);
};
Wallet.prototype.keyPoolRefill = function(options) {