Skip to content

Commit af3129e

Browse files
Juhyung Parkmergify[bot]
authored andcommitted
Fix the "little-endian" to the "big-endian" in the spec document
1 parent 5d7a943 commit af3129e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/CodeChain-Virtual-Machine.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Although CCVM itself doesn’t have any type notations, some instructions treat
1616
### Byte array -> Integer:
1717

1818
* A byte array MUST fit in 8 bytes.
19-
* A byte array is decoded with little-endian byte ordering.
19+
* A byte array is decoded with big-endian byte ordering.
2020
* All items are decoded as an unsigned integer.
2121
* An empty array is decoded as a 0 in an integer.
2222

@@ -108,6 +108,6 @@ The specification about the tag is [here](Tag-encoding.md)
108108
- 2: BlockAge
109109
- 3: Time
110110
- 4: TimeAge
111-
2. Pop one more item from stack, which is the value of the timelock. It must be a big-endian encoded, 64-bit unsigned integer. The script will fail if the length of the item exceeds 8.
111+
2. Pop one more item from stack, which is the value of the timelock. It must be a 64-bit unsigned integer. The script will fail if the length of the item exceeds 8.
112112
2. Check the condition given the type and the value referring to the block number and the timestamp of the best block. See the `Timelock` section in [Transaction](Transaction.md) for more details.
113113
3. Push true if the condition is met, false otherwise.

0 commit comments

Comments
 (0)