You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found out that padFor in merkleize is 0.5 which is incorrect and it caused bitLength function to run forever
we expect integer there
Digging into it, I see the following snippet in _hashTreeRoot maybe the root cause
case Type.list:
value = value as SerializableArray;
if (isBasicType(type.elementType)) {
return mixInLength(
merkleize(
pack(value, (type as ListType).elementType),
(type.maxLength * fixedSize(type.elementType)) / BYTES_PER_CHUNK
),
value.length
);
} else {
the 2nd parameter in merkleize maybe not correct, it can be like this
Describe the bug
This unit test never return
This is because of the implementation inside
hashTreeRoot
.Expected behavior
It should return a hash or throw an error
The text was updated successfully, but these errors were encountered: