Closed MirandaWood closed 4 years ago
Eventually, we should replace all the 'zkp-utils' stuff with the npm library we're building.
:tada: This PR is included in version 3.0.2 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
Fix: integer value leaves
Fixed a bug in which Timber expected all leaves from emitted events to be in hex form. Only presented itself when
updateNodes
was called.Now,
updateNodes
checks whether the input leaf (here,nodeValueFull
) is hex before truncating it. If it's not, it converts to hex usingconvertBase
. We haven't noticed/needed a fix since most cases have leaves being emitted in 32 byte hex form, but now we have MiMC hashing over two curves using uints will be more common!Tested with both Timber and external tests.