Skip to content

Commit

Permalink
update build params. map deserializeItem
Browse files Browse the repository at this point in the history
  • Loading branch information
xizho10 committed Dec 5, 2018
1 parent 6cb5550 commit ed661ee
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,13 @@ public static Object deserializeItem(BinaryReader reader){
byte[] key = (byte[])deserializeItem(reader);
Object value = deserializeItem(reader);
if(value instanceof byte[]){
value = new String((byte[])value);
value = Helper.toHexString((byte[])value);
} else if(value instanceof Long){
if((Long)value == 0){
value = "00";
}else {
value = Helper.toHexString(Helper.BigIntToNeoBytes(BigInteger.valueOf((long) value)));
}
}
map.put(new String(key),value);
count--;
Expand Down

0 comments on commit ed661ee

Please sign in to comment.