Skip to content
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

Use OptimismPortal.FINALIZATION_PERIOD_SECONDS if L2OutputOracle.version is '1.0.0'. #5277

Merged
merged 7 commits into from
Mar 28, 2023

Conversation

zchn
Copy link
Contributor

@zchn zchn commented Mar 28, 2023

Description

@eth-optimism/sdk starting at 2.0.0 is assuming the FINALIZATION_PERIOD_SECOND is moved to L2OutputOracle, which is not the case for L2OutputOracle.version === '1.0.0'.

Version 1.0.0 of the L2OutputOracle is still deployed at Goerli, and all SDK consumers depending on the FINALIZATION_PERIOD_SECOND are broken right now (e.g. the fault-detector). This PR makes the sdk work with both 1.0.0 and the latest version of smart contracts.

Tests

No tests added. Manually ran yarn start in fault-detector to confirm this fixed the breakage.

Happy add a test if necessary.

Invariants

N/A since this PR does not change critical path.

@changeset-bot
Copy link

changeset-bot bot commented Mar 28, 2023

⚠️ No Changeset found

Latest commit: f434f6e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@mergify mergify bot added the sdk label Mar 28, 2023
@mergify mergify bot requested a review from roninjin10 March 28, 2023 14:55
@netlify
Copy link

netlify bot commented Mar 28, 2023

Deploy Preview for opstack-docs ready!

Name Link
🔨 Latest commit f434f6e
🔍 Latest deploy log https://app.netlify.com/sites/opstack-docs/deploys/6423232eb7b20f0008c9f71b
😎 Deploy Preview https://deploy-preview-5277--opstack-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@zchn zchn marked this pull request as ready for review March 28, 2023 15:26
@zchn zchn requested a review from a team as a code owner March 28, 2023 15:26
@mergify
Copy link
Contributor

mergify bot commented Mar 28, 2023

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Mar 28, 2023

This PR is next in line to be merged, and will be merged as soon as checks pass.

1 similar comment
@mergify
Copy link
Contributor

mergify bot commented Mar 28, 2023

This PR is next in line to be merged, and will be merged as soon as checks pass.

@mergify mergify bot merged commit 4d644da into develop Mar 28, 2023
@mergify mergify bot deleted the k0328/sec-42-dynamic-abi branch March 28, 2023 17:49
@mergify mergify bot removed the on-merge-train label Mar 28, 2023
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.

None yet

5 participants