ora-io / zkgraph

Template for zkGraph.
https://docs.hyperoracle.io/zkgraph
19 stars 8 forks source link

Fix test output #16

Closed fewwwww closed 1 year ago

fewwwww commented 1 year ago

Right now the output of npm run test is

0000000000000000000000000000000000000000000000000000000000000001
0x1c411e9a96e071241c2f21f7726b17ae89e3cab4c78be50e062b03a9fffbbad1:bytes-packed 0x0000000000000000000000000000000000000000000000000000000000000000:bytes-packed 0x0000000000000000000000000000000000000000000000000000000000000000:bytes-packed 0x0000000000000000000000000000000000000000000000000000000000000000:bytes-packed 0x40:i64 0x00000000000000000000000000000000000000000014df54140456547ac7f6570000000000000000000000000000000000000000000000040f915afbed20232c:bytes-packed 0000000000000000000000000000000000000000000000000000000000000001:bytes-packed

However, the last line of 0...01:bytes-packed needs to start with 0x, so that it can be used for proof generation in zkWASM. The src/test.js file needs to be modified.

fewwwww commented 1 year ago

In zkwasm explorer, the input is separated by " ", while in local zkwasm server, the input is separated by ",".

Output should print both ways for easier developer experience.