aboutsummaryrefslogtreecommitdiffstats
path: root/dist/ethereum.js
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-04 18:26:19 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-02-04 18:26:19 +0800
commit859a1999cb204d2c6fcb08d6569c738c5af5cd86 (patch)
treecc6379b712a577c73df29f17214f4cbfddecb23a /dist/ethereum.js
parenta0cfa3ca21163f26f3f71a0e2ce0a1e617554c72 (diff)
parentf3e1797153ebf5b19ca3e154cf1240be738e4f08 (diff)
downloadgo-tangerine-859a1999cb204d2c6fcb08d6569c738c5af5cd86.tar.gz
go-tangerine-859a1999cb204d2c6fcb08d6569c738c5af5cd86.tar.zst
go-tangerine-859a1999cb204d2c6fcb08d6569c738c5af5cd86.zip
Merge pull request #55 from ethereum/develop
fixed jsonrpc result field 0 not handled properly
Diffstat (limited to 'dist/ethereum.js')
-rw-r--r--dist/ethereum.js2
1 files changed, 1 insertions, 1 deletions
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