mirror of https://github.com/status-im/web3.js.git
Merge branch 'master' of https://github.com/ethereum/ethereum.js
Conflicts: lib/web3/jsonrpc.js
This commit is contained in:
commit
534e96da9e
|
@ -2418,7 +2418,7 @@ Jsonrpc.prototype.toPayload = function (method, params) {
|
|||
method: method,
|
||||
params: params || [],
|
||||
id: this.messageId++
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -2426,7 +2426,7 @@ Jsonrpc.prototype.toPayload = function (method, params) {
|
|||
*
|
||||
* @method isValidResponse
|
||||
* @param {Object}
|
||||
* @returns {Boolean} true if response is valid, otherwise false
|
||||
* @returns {Boolean} true if response is valid, otherwise false
|
||||
*/
|
||||
Jsonrpc.prototype.isValidResponse = function (response) {
|
||||
return !!response &&
|
||||
|
@ -2447,7 +2447,7 @@ Jsonrpc.prototype.toBatchPayload = function (messages) {
|
|||
var self = this;
|
||||
return messages.map(function (message) {
|
||||
return self.toPayload(message.method, message.params);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = Jsonrpc;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2418,7 +2418,7 @@ Jsonrpc.prototype.toPayload = function (method, params) {
|
|||
method: method,
|
||||
params: params || [],
|
||||
id: this.messageId++
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -2426,7 +2426,7 @@ Jsonrpc.prototype.toPayload = function (method, params) {
|
|||
*
|
||||
* @method isValidResponse
|
||||
* @param {Object}
|
||||
* @returns {Boolean} true if response is valid, otherwise false
|
||||
* @returns {Boolean} true if response is valid, otherwise false
|
||||
*/
|
||||
Jsonrpc.prototype.isValidResponse = function (response) {
|
||||
return !!response &&
|
||||
|
@ -2447,7 +2447,7 @@ Jsonrpc.prototype.toBatchPayload = function (messages) {
|
|||
var self = this;
|
||||
return messages.map(function (message) {
|
||||
return self.toPayload(message.method, message.params);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = Jsonrpc;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -55,7 +55,7 @@ Jsonrpc.prototype.toPayload = function (method, params) {
|
|||
method: method,
|
||||
params: params || [],
|
||||
id: this.messageId++
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -63,7 +63,7 @@ Jsonrpc.prototype.toPayload = function (method, params) {
|
|||
*
|
||||
* @method isValidResponse
|
||||
* @param {Object}
|
||||
* @returns {Boolean} true if response is valid, otherwise false
|
||||
* @returns {Boolean} true if response is valid, otherwise false
|
||||
*/
|
||||
Jsonrpc.prototype.isValidResponse = function (response) {
|
||||
return !!response &&
|
||||
|
@ -84,7 +84,7 @@ Jsonrpc.prototype.toBatchPayload = function (messages) {
|
|||
var self = this;
|
||||
return messages.map(function (message) {
|
||||
return self.toPayload(message.method, message.params);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
module.exports = Jsonrpc;
|
||||
|
|
Loading…
Reference in New Issue