reverted ethereum.js

This commit is contained in:
arkpar 2015-02-02 18:20:43 +01:00
parent 1a6b7de0af
commit 4bb5ba78b0

3
dist/ethereum.js vendored
View File

@ -903,7 +903,8 @@ var ProviderManager = function() {
data.data._id = self.id;
self.id++;
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
if (result.error || !(result.result instanceof Array) || result.result.length === 0) {