Skip to content

Comments

refactor[contracts]: Remove two unused contracts#549

Merged
smartcontracts merged 3 commits intomasterfrom
refactor/remove-old-contracts
Apr 22, 2021
Merged

refactor[contracts]: Remove two unused contracts#549
smartcontracts merged 3 commits intomasterfrom
refactor/remove-old-contracts

Conversation

@smartcontracts
Copy link
Contributor

Description
Removes two unused contracts, mockOVM_ECDSAContractAccount and OVM_ProxySequencerEntrypoint. mockOVM_ECDSAContractAccount was previously being used as a way to simulate eth_call before the introduction of Lib_ExecutionManager.simulateMessage. OVM_ProxySequencerEntrypoint was intended to make OVM_SequencerEntrypoint easily upgradeable but has since been superseded by chugsplash.

@changeset-bot
Copy link

changeset-bot bot commented Apr 21, 2021

🦋 Changeset detected

Latest commit: a4132c7

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

This PR includes changesets to release 2 packages
Name Type
@eth-optimism/l2geth Patch
@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

Copy link
Collaborator

@ben-chain ben-chain left a comment

Choose a reason for hiding this comment

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

Ahhhh, very satisfying. 😄

OVM_DeployerWhitelist: '0x4200000000000000000000000000000000000002',
OVM_ECDSAContractAccount: '0x4200000000000000000000000000000000000003',
OVM_ProxySequencerEntrypoint: '0x4200000000000000000000000000000000000004',
//OVM_ProxySequencerEntrypoint: '0x4200000000000000000000000000000000000004', // removed
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah I think this makes sense

Copy link
Contributor

Choose a reason for hiding this comment

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

Why comment it out instead of removing it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah I thought it might be weird if the addresses go from 0x42....03 to 0x42....05 without explanation. Someone might think there's a missing contract there. I figured we could leave this here for posterity until we figure out what to do about predeploys we're no longer using.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better to address with a comment on top of the predeploys object instead of commenting out the line. That will give room to explain why it was removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Comment added.

Copy link
Contributor

@tynes tynes left a comment

Choose a reason for hiding this comment

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

Please add a changeset and is this safe to merge to master?

@smartcontracts
Copy link
Contributor Author

smartcontracts commented Apr 21, 2021

Yes, safe to merge. edit; under the assumption that both geth and contracts are both upgraded.

@maurelian
Copy link
Contributor

The contracts themselves LGTM.

@smartcontracts smartcontracts merged commit 6e8fe1b into master Apr 22, 2021
@smartcontracts smartcontracts deleted the refactor/remove-old-contracts branch April 22, 2021 18:29
InoMurko referenced this pull request in omgnetwork/optimism May 25, 2021
* refactor[contracts]: Remove two unused contracts

* chore[contracts]: Add changeset

* docs[contracts]: Added a comment to explain removal of 0x42..05
theochap pushed a commit that referenced this pull request Jan 15, 2026
Follow-up on #548 

## Motivation

`OpTransaction` trait can tell if its deposit, but that is not very
useful if I also need to extract it.

## Solution

Add `as_deposit` function into the trait for the extraction of
`TxDeposit`.

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
theochap pushed a commit that referenced this pull request Jan 15, 2026
…550)

Follow-up on #549 

## Motivation

The RPC transaction object has a dedicated conversion function that
accepts `OpTxEnvelope` struct. But it cannot be used with a transaction
that is not `OpTxEnvelope` but implements `OpTransaction`.

## Solution

Since `OpTransaction` provides all the needed functionality for the
conversion, replace the `OpTxEnvelope` type with a generic type.

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
theochap pushed a commit that referenced this pull request Jan 21, 2026
…lloy-rs/op-alloy#550)

Follow-up on #549 

## Motivation

The RPC transaction object has a dedicated conversion function that
accepts `OpTxEnvelope` struct. But it cannot be used with a transaction
that is not `OpTxEnvelope` but implements `OpTransaction`.

## Solution

Since `OpTransaction` provides all the needed functionality for the
conversion, replace the `OpTxEnvelope` type with a generic type.

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
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.

4 participants