Skip to content

Commit ed46cdb

Browse files
committed
fix critical bug OperationSerializer
1 parent 114075f commit ed46cdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/ChainOperations/OperationSerializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public static function serializeType($type, $value, $byteBuffer)
104104
$byteBuffer->writeInt8($strLength);
105105
} elseif ($strLength < 256) {
106106
$strLength = round($strLength / 128, 0) * 256
107-
+ ($strLength - (round($strLength / 128, 0) - 1) * 128);
107+
+ ($strLength - (round($strLength / 256, 0) * 256));
108108
$byteBuffer->writeInt16LE($strLength);
109109
} else {
110110
$strLength = round($strLength / 128, 0) * 256

0 commit comments

Comments
 (0)