Skip to content

Commit ada690f

Browse files
committed
- fix type ASSET
1 parent 5d9fae0 commit ada690f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Tools/ChainOperations/OperationSerializer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,7 @@ public static function serializeType($type, $value, $byteBuffer, $chainName)
169169
} elseif ($type === self::TYPE_ASSET) {
170170
list($amount, $symbol) = explode(' ', $value);
171171

172-
//TODO FIXME have to be writeInt64
173-
$byteBuffer->writeInt32LE(str_replace('.', '', $amount));
174-
$byteBuffer->writeInt32LE(0);
172+
$byteBuffer->writeInt64LE(str_replace('.', '', $amount));
175173

176174
$dot = strpos($amount, '.');
177175
$precision = $dot === false ? 0 : strlen($amount) - $dot - 1;

0 commit comments

Comments
 (0)