fixed jsonrpc response 0 not handled properly
This commit is contained in:
2
dist/ethereum.js
vendored
2
dist/ethereum.js
vendored
@@ -979,7 +979,7 @@ var isValidResponse = function (response) {
|
||||
!response.error &&
|
||||
response.jsonrpc === '2.0' &&
|
||||
typeof response.id === 'number' &&
|
||||
(!!response.result || typeof response.result === 'boolean');
|
||||
response.result !== undefined; // only undefined is not valid json object
|
||||
};
|
||||
|
||||
/// Should be called to create batch payload object
|
||||
|
Reference in New Issue
Block a user