fix(gentest): update imports to fix template #1751
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🗒️ Description
When playing around with
uv run gentestit generated a file which could not be ran directly since it imported stuff which was not the method which was being used. Keeping this as draft, because we might want to update some things forgentest:debug_traceCall. We should change this todebug_traceTransaction, because my endpoint does not supportdebug_traceCall. I also think thattraceCallproduces incorrect results if your tx is not in index 0, because it will run the call on top of the block and not after executing the previous txs.debug_traceTransactionalso supports the prestate tracer and it works out of the box.For the change in
debug_traceTransactionI have this local fix (insrc/ethereum_test_rpc/rpc.py):This
gentesttool is extremely helpful to sandbox a tx and use it to check against clients to see if something funny is happening there! 😄 👍CC @raxhvl, feel free to take over this PR 😄 👍
🔗 Related Issues
✅ Checklist
mkdocs servelocally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.