Skip to content

Comments

refactor[contracts]: Remove OVM_L1MessageSender#562

Closed
smartcontracts wants to merge 3 commits intomasterfrom
refactor/l2-xdomain-messenger
Closed

refactor[contracts]: Remove OVM_L1MessageSender#562
smartcontracts wants to merge 3 commits intomasterfrom
refactor/l2-xdomain-messenger

Conversation

@smartcontracts
Copy link
Contributor

Description
Removes OVM_L1MessageSender predeploy in favor of using the Lib_ExecutionManagerWrapper.

Discussion
L2CrossDomainMessenger.spec.ts was using an EVM-compiled version of the contract during testing. Removal of OVM_L1MessageSender means that we're relying on the custom kall builtin which only exists in optimistic-solc. As a result, that test file doesn't make sense anymore. Although it really didn't make much sense to be testing the EVM-compiled contract in the first place. Those tests will not work without a complete rewrite of the test file to use the same pattern that our other L2-compiled contracts are using. However, the current pattern is extremely ugly and requires a lot of unnecessary effort. It would be ideal if we added a ticket to develop a better testing pattern for these L2 contracts and simply rewrote this test file with the new pattern. For now I've just deleted the old file. Thoughts?

@changeset-bot
Copy link

changeset-bot bot commented Apr 22, 2021

🦋 Changeset detected

Latest commit: 6847015

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/contracts Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@smartcontracts
Copy link
Contributor Author

Closing this after conversation with Karl.

@smartcontracts smartcontracts deleted the refactor/l2-xdomain-messenger branch April 22, 2021 19:17
theochap pushed a commit that referenced this pull request Jan 15, 2026
emhane pushed a commit that referenced this pull request Feb 4, 2026
Closes #562 

Validated the optimization by rewriting an initial state with N=50,000
updated entries.
- Throughput: Increased by ~20.9% (326k → 394k entries/sec).
- Latency: Reduced by ~17.2% (153ms → 126ms).

```
Old approach:
Rewrite Duration: 153.26ms
Throughput:       326,248 entries/sec

New approach:
Rewrite Duration: 126.77ms
Throughput:       394,410 entries/sec
```

bench:
op-rs/op-reth@180e132
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.

1 participant