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

Use some general state tests as transaction tests; Ensure txn type_id #2157

Merged

Conversation

fselmo
Copy link
Collaborator

@fselmo fselmo commented Mar 15, 2024

What was wrong?

  • A SpoofTransaction is usually used to turn an unsigned transaction into a "signed" transaction for estimating gas for example. eth-tester uses SpoofTransaction for these purposes and we need to make sure that it also accounts for a type_id which is a part of the SignedTransactionAPI.
  • Quite a few transaction tests can be pulled in from general state tests.

How was it fixed?

  • Add proper type_id values to SpoofTransaction since it should use all attributes from the SignedTransactionAPI.
  • Pull in transaction tests from some general state tests

Todo:

Cute Animal Picture

prompt: iterate on 'snakes transitioning from the Shanghai city life to a life in Cancun with a sign that says "Cancun"' but make 'transactions' a theme

Screenshot 2024-03-15 at 17 42 07

fselmo added a commit to fselmo/py-evm that referenced this pull request Mar 15, 2024
@fselmo fselmo marked this pull request as ready for review March 15, 2024 23:43
@fselmo fselmo requested review from kclowes and pacrob March 15, 2024 23:47
fselmo added a commit to fselmo/py-evm that referenced this pull request Mar 15, 2024
@fselmo fselmo force-pushed the transaction-tests-and-fix-type-id-txn-issue branch from 909c949 to 019c18a Compare March 15, 2024 23:52
fselmo added a commit to fselmo/py-evm that referenced this pull request Mar 16, 2024
@fselmo fselmo force-pushed the transaction-tests-and-fix-type-id-txn-issue branch from 019c18a to 296fc8e Compare March 16, 2024 01:16
@fselmo fselmo force-pushed the transaction-tests-and-fix-type-id-txn-issue branch from 296fc8e to 8e25af8 Compare March 18, 2024 15:40
Copy link
Collaborator

@pacrob pacrob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@fselmo fselmo merged commit ac28892 into ethereum:main Mar 18, 2024
46 checks passed
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.

None yet

2 participants