-
Notifications
You must be signed in to change notification settings - Fork 140
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
Tool for applying test vectors from Ethereum on FEVM #1482
base: master
Are you sure you want to change the base?
Conversation
another PR: filecoin-project/test-vectors#192 |
c043570
to
2f15696
Compare
56c2edc
to
5334808
Compare
Hey! 👋 As part of our cleanup to kick off the year, I'm reviewing all open non-draft pull requests. Could you please do one of the following for your PR? 1. Close it: If it's no longer needed. If there's no response in a week, I'll assume it's option 1 and close the PR. If you have any questions, just let me know. Thanks for your help in keeping things organized, and I appreciate your contributions! |
Tracking issue filecoin-project/devgrants#1202.
We implemented a command-line tool that extracts transactions from ethereum and generates test vectors.
We extended TestVector to provide more contextual information:
chain_id
field toTestVector
( for the opcodeCHAINID
to read )tipset_cids
field toTestVector
( for the opcodeBLOCKHASH
to read )timestamp
field toVariant
( for the opcodeTIMESTAMP
to read )_debug
field toMetadata
to provide information about transaction.We extend the way test vectors are compared to :
skip_compare_gas_used
field toTestVector
to allow comparisons that ignore gasUsed.skip_compare_addresses
field toTestVector
to allow comparisons that ignore some addresses.(Due to the difference in gas consumption between filecoin and ethereum, So we can't compare
from address
)skip_compare_actor_ids
field toTestVector
to allow comparisons that ignore somebuiltin actors
.(Since there is no way to compare RewardActor and BurntFundsActor, we need to ignore the comparison of these two builtin actors)
additional_compare_addresses
field toTestVector
to allow comparison of more contract addresses.(Since an ethereum transaction may involve more contract addresses than the to address)