Skip to content

Commit

Permalink
loadString length fix
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzaycev committed Nov 18, 2024
1 parent 02a8524 commit 4906139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Olifanton/Interop/Boc/Slice.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public function loadMaybeRef(): ?Cell
public function loadString(?int $bytes = null): string
{
$bytes = $bytes === null
? $this->loadBits($this->length)
? $this->loadBits($this->getFreeBits())
: $this->loadBits($bytes);

return trim(Bytes::arrayToBytes($bytes), "\0");
Expand Down

0 comments on commit 4906139

Please sign in to comment.