@@ -27,20 +27,20 @@ suite "History Content Keys":
27
27
28
28
# Output
29
29
const contentIds = [
30
- " 0001000000000000000000000000000000000000000000000000000000000000 " ,
31
- " 03e8000000000000000000000000000000000000000000000000000000000000 " ,
32
- " 614e3d0000000000000000000000000000000000000000000000000000000000 " ,
33
- " ffffffffffffffff000000000000000000000000000000000000000000000000 " ,
34
- " fffeffffffffffff000000000000000000000000000000000000000000000000 " ,
35
- " fffffffffffffffe000000000000000000000000000000000000000000000000 " ,
36
- " 0000000000000008000000000000000000000000000000000000000000000000 " ,
37
- " 5555aaaaaaaaaaaa000000000000000000000000000000000000000000000000 " ,
38
- " aaaa555555555555000000000000000000000000000000000000000000000000 " ,
39
- " a0a0050505050505000000000000000000000000000000000000000000000000 " ,
30
+ " 0001000000000000000000000000000000000000000000000000000000000009 " ,
31
+ " 03e8000000000000000000000000000000000000000000000000000000000009 " ,
32
+ " 614e3d0000000000000000000000000000000000000000000000000000000009 " ,
33
+ " ffffffffffffffff000000000000000000000000000000000000000000000009 " ,
34
+ " fffeffffffffffff000000000000000000000000000000000000000000000009 " ,
35
+ " fffffffffffffffe000000000000000000000000000000000000000000000009 " ,
36
+ " 0000000000000008000000000000000000000000000000000000000000000009 " ,
37
+ " 5555aaaaaaaaaaaa000000000000000000000000000000000000000000000009 " ,
38
+ " aaaa555555555555000000000000000000000000000000000000000000000009 " ,
39
+ " a0a0050505050505000000000000000000000000000000000000000000000009 " ,
40
40
]
41
41
42
42
for i in 0 ..< blockNumbers.len ():
43
- let contentId = toContentId (blockNumbers[i])
43
+ let contentId = toContentId (blockNumbers[i], ContentType .blockBody )
44
44
45
45
check contentIds[i] == contentId.dumpHex ()
46
46
@@ -52,10 +52,10 @@ suite "History Content Keys":
52
52
const
53
53
contentKeyHex = " 0x094e61bc0000000000"
54
54
contentId =
55
- " 44012581390156707874310974263613699127815223388818970640389075388176810377216 "
55
+ " 44012581390156707874310974263613699127815223388818970640389075388176810377225 "
56
56
# or
57
57
contentIdHexBE =
58
- " 614e3d0000000000000000000000000000000000000000000000000000000000 "
58
+ " 614e3d0000000000000000000000000000000000000000000000000000000009 "
59
59
60
60
let contentKey = blockBodyContentKey (blockNumber)
61
61
@@ -81,10 +81,10 @@ suite "History Content Keys":
81
81
const
82
82
contentKeyHex = " 0x0a4e61bc0000000000"
83
83
contentId =
84
- " 44012581390156707874310974263613699127815223388818970640389075388176810377216 "
84
+ " 44012581390156707874310974263613699127815223388818970640389075388176810377226 "
85
85
# or
86
86
contentIdHexBE =
87
- " 614e3d0000000000000000000000000000000000000000000000000000000000 "
87
+ " 614e3d000000000000000000000000000000000000000000000000000000000a "
88
88
89
89
let contentKey = receiptsContentKey (blockNumber)
90
90
0 commit comments