mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Fix tiny regression
This commit is contained in:
@@ -1481,7 +1481,10 @@ Remote.prototype.requestTxHistory = function(start, callback) {
|
||||
Remote.prototype.requestBookOffers = function(gets, pays, taker, callback) {
|
||||
if (gets.hasOwnProperty('pays')) {
|
||||
var options = gets;
|
||||
callback = pays;
|
||||
// This would mutate the `lastArg` in `arguments` to be `null` and is
|
||||
// redundant. Once upon a time, some awkward code was written f(g, null,
|
||||
// null, cb) ...
|
||||
// callback = pays;
|
||||
taker = options.taker;
|
||||
pays = options.pays;
|
||||
gets = options.gets;
|
||||
|
||||
Reference in New Issue
Block a user