Skip to content

Commit

Permalink
Manually merging #49. Thanks https://github.com/fynntang !
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Oct 14, 2024
1 parent a215e1c commit 06413b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cell/src/main/java/org/ton/java/cell/CellSlice.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import static java.util.Objects.nonNull;

import java.math.BigInteger;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Function;
Expand Down Expand Up @@ -443,9 +444,7 @@ public String loadSnakeString() {
BitString bitString = ref.loadBits(ref.bits.getLength());

byte[] uintArray = bitString.toByteArray();
for (byte value : uintArray) {
s.append((char) value);
}
s.append(new String(uintArray, StandardCharsets.UTF_8));

if (ref.refs.size() > 1) {
throw new Error("more than one ref, it is not snake string");
Expand Down

0 comments on commit 06413b3

Please sign in to comment.