Browse Source

reverted ethereum.js

cl-refactor
arkpar 10 years ago
parent
commit
921e92474e
  1. 3
      libjsqrc/ethereumjs/dist/ethereum.js

3
libjsqrc/ethereumjs/dist/ethereum.js

@ -903,7 +903,8 @@ var ProviderManager = function() {
data.data._id = self.id; data.data._id = self.id;
self.id++; self.id++;
var result = self.provider.send(data.data); var result = self.provider.send(data.data);
result = JSON.parse(result);
result = JSON.parse(result);
// dont call the callback if result is not an array, or empty one // dont call the callback if result is not an array, or empty one
if (result.error || !(result.result instanceof Array) || result.result.length === 0) { if (result.error || !(result.result instanceof Array) || result.result.length === 0) {

Loading…
Cancel
Save