Skip to content

Conversation

@tuxcanfly
Copy link

This PR restores all of the RPC tests copied from ethereum/rpc simulator. This is an alternative approach to increasing RPC coverage, in contrast to #4, where we were deploying the contract and using it instead of a predeployed contract.

The tests are exactly same as ethereum/rpc, so the predeploy vault contract and test contract have also been copied over. It was relatively easier to add the predeploy to L2 genesis, instead of adding a new setup step that does the contract deployment.

With this PR all the existing rpc tests except 5 test which depend on predeploy TransactionByHash / TransactionInBlock are failing due to:

panic: deposit tx does not have signature

which seems to be an issue with the reference optimistic geth failing to parse a predeployed transaction. A bug report will be filed on that but in the meantime, this test suite is working as intended so it should be merged.

Some tests are a bit flaky because of timing issues around transaction inclusion. This will be fixed in the next round of PRs.

@mslipper mslipper merged commit 58c585f into optimism May 11, 2022
protolambda pushed a commit that referenced this pull request Jul 27, 2022
* simulators (op): restore predeploy

* simulators (op): restore all rpc tests

* simulators (op): log - include tx hash in error
mslipper pushed a commit that referenced this pull request Sep 8, 2022
* simulators (op): restore predeploy

* simulators (op): restore all rpc tests

* simulators (op): log - include tx hash in error
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

Successfully merging this pull request may close these issues.

3 participants