Skip to content

cleanup(contracts): remove unused code#2263

Merged
mslipper merged 1 commit intoethereum-optimism:developfrom
tonykogias:remove-unused-function-contracts-package
Mar 7, 2022
Merged

cleanup(contracts): remove unused code#2263
mslipper merged 1 commit intoethereum-optimism:developfrom
tonykogias:remove-unused-function-contracts-package

Conversation

@tonykogias
Copy link
Contributor

Removes functions and constants that are not used in the contracts
package. Also removes export from interfaces that are not being imported.

Metadata

Removes functions and constants that are not used in the contracts
package. Also removes export from interfaces that are not being imported.
@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2022

🦋 Changeset detected

Latest commit: b6a4fa4

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

This PR includes changesets to release 3 packages
Name Type
@eth-optimism/contracts Patch
@eth-optimism/data-transport-layer Patch
@eth-optimism/sdk 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

@tonykogias
Copy link
Contributor Author

@smartcontracts As you can see from the changes I found a couple more things that are not being used anywhere in the module and removed export from a few interfaces that were not getting imported anywhere.

I am not used to semantic versioning yet but I added it as a patch change for now, let me know if you want me to change it to minor

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2022

Codecov Report

Merging #2263 (b6a4fa4) into develop (fde01d4) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2263   +/-   ##
========================================
  Coverage    80.08%   80.08%           
========================================
  Files           77       77           
  Lines         2460     2460           
  Branches       450      450           
========================================
  Hits          1970     1970           
  Misses         490      490           
Flag Coverage Δ
contracts 99.29% <ø> (ø)
core-utils 86.77% <ø> (ø)
data-transport-layer 49.72% <ø> (ø)
sdk 55.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fde01d4...b6a4fa4. Read the comment docs.

@mslipper
Copy link
Contributor

mslipper commented Mar 7, 2022

Thank you! LGTM

@mslipper mslipper merged commit f8b5803 into ethereum-optimism:develop Mar 7, 2022
theochap pushed a commit that referenced this pull request Dec 10, 2025
### Description

The `setEcotone()` selector was incorrectly encoded as `22b908b3` in
`kona-hardforks`.

See [the op
specs](https://specs.optimism.io/protocol/ecotone/derivation.html?highlight=setEcotone#gaspriceoracle-enable-ecotone).

```
cast sig "setEcotone()"
0x22b90ab3
```

Adds tests to ensure that the selectors are correctly set.
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.

Remove outdated function from the contracts package

3 participants