mirror of https://github.com/status-im/web3.js.git
fixed callback error issue
This commit is contained in:
parent
dc69085b72
commit
ff48da19c3
|
@ -3201,7 +3201,7 @@ Method.prototype.send = function () {
|
|||
if (payload.callback) {
|
||||
var self = this;
|
||||
return RequestManager.getInstance().sendAsync(payload, function (err, result) {
|
||||
payload.callback(null, self.formatOutput(result));
|
||||
payload.callback(err, self.formatOutput(result));
|
||||
});
|
||||
}
|
||||
return this.formatOutput(RequestManager.getInstance().send(payload));
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -3201,7 +3201,7 @@ Method.prototype.send = function () {
|
|||
if (payload.callback) {
|
||||
var self = this;
|
||||
return RequestManager.getInstance().sendAsync(payload, function (err, result) {
|
||||
payload.callback(null, self.formatOutput(result));
|
||||
payload.callback(err, self.formatOutput(result));
|
||||
});
|
||||
}
|
||||
return this.formatOutput(RequestManager.getInstance().send(payload));
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -162,7 +162,7 @@ Method.prototype.send = function () {
|
|||
if (payload.callback) {
|
||||
var self = this;
|
||||
return RequestManager.getInstance().sendAsync(payload, function (err, result) {
|
||||
payload.callback(null, self.formatOutput(result));
|
||||
payload.callback(err, self.formatOutput(result));
|
||||
});
|
||||
}
|
||||
return this.formatOutput(RequestManager.getInstance().send(payload));
|
||||
|
|
Loading…
Reference in New Issue