Skip to content

Commit 2c6b136

Browse files
author
Beau Shinkle
committed
Turns out, all data in ethereum is big-endian
1 parent aba71d3 commit 2c6b136

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/leafTest.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ describe("Leaf", () => {
1717
// and the operator's id in the final 32 bits. Each hex character
1818
// represents 4 bits, so a 40-character hex representation of an eth
1919
// address is the exact 160 bits we need. A number (like a creation block
20-
// or id) is little-endian and gets left-padded with zeros to fill the
21-
// exact bit count.
20+
// or id) is big-endian and gets left-padded (see
21+
// https://github.com/ethereum/solidity-examples/issues/54) with zeros
22+
// to fill the exact bit count.
2223
const testData = [
2324
{
2425
address: "0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5",

0 commit comments

Comments
 (0)