|
@ -2054,8 +2054,7 @@ WalletService.prototype.getTx = function(opts, cb) { |
|
|
WalletService.prototype.editTxNote = function(opts, cb) { |
|
|
WalletService.prototype.editTxNote = function(opts, cb) { |
|
|
var self = this; |
|
|
var self = this; |
|
|
|
|
|
|
|
|
if (!Utils.checkRequired(opts, ['txid'])) |
|
|
if (!checkRequired(opts, 'txid', cb)) return; |
|
|
return cb(new ClientError('Required argument missing')); |
|
|
|
|
|
|
|
|
|
|
|
self._runLocked(cb, function(cb) { |
|
|
self._runLocked(cb, function(cb) { |
|
|
self.storage.fetchTxNote(self.walletId, opts.txid, function(err, note) { |
|
|
self.storage.fetchTxNote(self.walletId, opts.txid, function(err, note) { |
|
@ -2084,9 +2083,7 @@ WalletService.prototype.editTxNote = function(opts, cb) { |
|
|
WalletService.prototype.getTxNote = function(opts, cb) { |
|
|
WalletService.prototype.getTxNote = function(opts, cb) { |
|
|
var self = this; |
|
|
var self = this; |
|
|
|
|
|
|
|
|
if (!Utils.checkRequired(opts, ['txid'])) |
|
|
if (!checkRequired(opts, 'txid', cb)) return; |
|
|
return cb(new ClientError('Required argument missing')); |
|
|
|
|
|
|
|
|
|
|
|
self.storage.fetchTxNote(self.walletId, opts.txid, cb); |
|
|
self.storage.fetchTxNote(self.walletId, opts.txid, cb); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|