0xFableOrg / 0xFable

A fully on-chain trading card game. There will be elves, wizards & shit. Drama and broken friendships also.
https://twitter.com/0xFableGame
BSD 3-Clause Clear License
106 stars 39 forks source link

Improve Linting #57

Closed norswap closed 1 year ago

norswap commented 1 year ago

Context (Problem, Motivation, Solution)

The Github issues asks for people to lint, but we haven't actually done this consistently. This PR intends to put the code in a linted state + improves the tooling around linting.

Describe Your Changes

TODO:

Checklist

norswap commented 1 year ago

@eerkaijun Do you know why the existing contracts add bytes calldata _proof parameters, but those I'm generating with Circom (I have version 2.1.4) have uint256[24] calldata _proof instead?

eerkaijun commented 1 year ago

@norswap Hmmm I just tried regenerating the verifier contract and it's giving me bytes calldata _proof as the parameters. I have 2.1.4 for circom too. What is your snarkjs version?

eerkaijun commented 1 year ago

Okay seems like snarkjs recently just upgraded to 0.7.x version and I am using a slightly older version (0.6.11). Once I upgrade my snarkjs then I got the same parameters as you.