Skip to content

Commit 110cf4a

Browse files
committed
JSON decode bug fixed
1 parent 9a2cda4 commit 110cf4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/ethplorer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ Ethplorer = {
837837
},
838838

839839
parseJData: function(hex){
840-
var str = Ethplorer.Utils.hex2ascii(hex.slice(8)).replace('{{', '{');
840+
var str = Ethplorer.Utils.hex2ascii(hex.slice(8)).replace('{{', '{').replace(/^[^{]+/, '');
841841
var res = false;
842842
var i1 = str.indexOf('{');
843843
var i2 = str.indexOf('}');

0 commit comments

Comments
 (0)