From f3e1797153ebf5b19ca3e154cf1240be738e4f08 Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Wed, 4 Feb 2015 11:23:23 +0100 Subject: fixed jsonrpc response 0 not handled properly --- dist/ethereum.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dist/ethereum.js') diff --git a/dist/ethereum.js b/dist/ethereum.js index 564d59b4a..fa4bcc591 100644 --- a/dist/ethereum.js +++ b/dist/ethereum.js @@ -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 -- cgit v1.2.3