From 0e2d307ac3487449114840bd9f42756feab556cb Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 31 May 2024 14:44:07 +0800 Subject: [PATCH] fix getFreeBits --- cell/src/main/java/org/ton/java/cell/CellSlice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cell/src/main/java/org/ton/java/cell/CellSlice.java b/cell/src/main/java/org/ton/java/cell/CellSlice.java index 785a23f0..c7abfb36 100644 --- a/cell/src/main/java/org/ton/java/cell/CellSlice.java +++ b/cell/src/main/java/org/ton/java/cell/CellSlice.java @@ -303,7 +303,7 @@ public boolean preloadBitAt(int position) { } public int getFreeBits() { - return bits.getFreeBits(); + return getRestBits(); } public int getRestBits() {