Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

l1-verifier tests not passing #9

Open
clowestab opened this issue Oct 27, 2023 · 1 comment
Open

l1-verifier tests not passing #9

clowestab opened this issue Oct 27, 2023 · 1 comment

Comments

@clowestab
Copy link
Contributor

I'm just having a play with the gateway code.

The l1-verifier repo has a test script testL1Verifier.ts.

Running the tests with npx hardhat test results in failures across the board.

Looking at the code it seems obvious why - the tests are expecting primitive type values whereas the fetch method of EVMFetcher reverts with the 3668 OffchainLookup error.

These tests seem to be testing the wrong thing..?

These repos are not well documented at this point. Could clarity please be provided.

@Arachnid
Copy link
Member

The tests should pass using bun run test. This uses a script to run the tests via ganache, which is necessary because hardhat-network does not support eth_getProof.

The OffchainData error is handled internally by Ethers, which implements eip 3668.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants