Skip to content

Commit

Permalink
feat(core): add eip7702 tx (#1804)
Browse files Browse the repository at this point in the history
**Motivation**

We have to add the [EIP-7702: Set EOA account
code](https://eips.ethereum.org/EIPS/eip-7702) transaction to our
implementation.

**Description**

- Add de/serialization
  - Simple de/serialization test
- RLP de/encoding
- Common methods for `Transaction`/`GenericTransaction`

>[!IMPORTANT]
> The integration with L1 was achieved by updating `revm` to version
`18.0.0`, which is the latest version compatible with our setup. This is
because we can only use `revm-inspectors` up to version `0.13.0`, as
later versions require Rust `1.82.0`, which would break the prover.
>
> LEVM should be up-to-date and functional while running EIP7702
transactions, but REVM will be outdated.

Closes #1792

---------

Co-authored-by: avilagaston9 <gavila@fi.uba.ar>
Co-authored-by: Avila Gastón <72628438+avilagaston9@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 5, 2025
1 parent 7cebb7e commit a980c6e
Show file tree
Hide file tree
Showing 20 changed files with 851 additions and 567 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_levm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
hive-test:
if: ${{ github.event_name != 'merge_group' }}
name: Hive Tests Check
needs: hive-report-creation
needs: [hive-report-creation, hive-report-creation-main]
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/daily_reports.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,19 +108,20 @@ jobs:
- name: Run tests
run: |
cd crates/vm/levm
make generate-evm-ef-tests-report
make generate-evm-ef-tests-report | tee test_result.txt
- name: Post results in summary
run: |
cd crates/vm/levm
echo "# Daily LEVM EF Tests Run Report" >> $GITHUB_STEP_SUMMARY
cat cmd/ef_tests/levm/levm_ef_tests_summary_github.txt >> $GITHUB_STEP_SUMMARY
cat test_result.txt >> $GITHUB_STEP_SUMMARY
- name: Check EF-TESTS status is 100%
id: check_tests
continue-on-error: true
run: |
cd crates/vm/levm
if [ "$(awk '/**Summary**:/ {print $(NF)}' cmd/ef_tests/levm/levm_ef_tests_summary_github.txt)" != "(100.00%)" ]; then
if [ "$(awk '/**Summary**:/ {print $(NF)}' test_result.txt)" != "(100.00%)" ]; then
echo "Percentage is not 100%."
exit 1
fi
Expand Down
Loading

0 comments on commit a980c6e

Please sign in to comment.