optimism icon indicating copy to clipboard operation
optimism copied to clipboard

fix(ct): bug in L2OutputOracle constructor

Open smartcontracts opened this issue 3 years ago • 15 comments

Description Fixes a small bug in the L2OutputOracle constructor where an assertion was being made about the wrong value. Unlikely that this would've caused any significant issues but worth fixing anyway.

smartcontracts avatar Aug 26 '22 17:08 smartcontracts

🦋 Changeset detected

Latest commit: e8b54e4043710d19c191d4305913739ba0d80fc8

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

This PR includes changesets to release 5 packages
Name Type
@eth-optimism/contracts-bedrock Patch
@eth-optimism/actor-tests Patch
@eth-optimism/sdk Patch
@eth-optimism/drippie-mon Patch
@eth-optimism/message-relayer 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

changeset-bot[bot] avatar Aug 26 '22 17:08 changeset-bot[bot]

I approve this, but now that I think about it we really need to have the discipline of writing a test every time we fix a bug. even when it's a trivial one like this. would really appreciate if you'd be so kind as to oblige me on that.

maurelian avatar Aug 26 '22 18:08 maurelian

SGTM!

smartcontracts avatar Aug 26 '22 18:08 smartcontracts

I approve this, but now that I think about it we really need to have the discipline of writing a test every time we fix a bug. even when it's a trivial one like this. would really appreciate if you'd be so kind as to oblige me on that.

Done

smartcontracts avatar Aug 26 '22 18:08 smartcontracts

@smartcontracts mind updating the gas snapshot + bindings?

mslipper avatar Sep 07 '22 08:09 mslipper

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

mergify[bot] avatar Sep 10 '22 08:09 mergify[bot]

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

mergify[bot] avatar Sep 10 '22 17:09 mergify[bot]

This needs code to handle the L1 genesis creation

tynes avatar Sep 10 '22 19:09 tynes

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

mergify[bot] avatar Sep 10 '22 21:09 mergify[bot]

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

mergify[bot] avatar Sep 12 '22 14:09 mergify[bot]

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

mergify[bot] avatar Sep 12 '22 22:09 mergify[bot]

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

mergify[bot] avatar Sep 16 '22 16:09 mergify[bot]

This is causing a bug somewhere:

Failed
=== RUN   TestBuildL1DeveloperGenesis
    layer_one_test.go:32: 
        	Error Trace:	/root/project/op-chain-ops/genesis/layer_one_test.go:32
        	Error:      	Received unexpected error:
        	            	no code found for L2OutputOracle
        	Test:       	TestBuildL1DeveloperGenesis
--- FAIL: TestBuildL1DeveloperGenesis (0.01s)

mslipper avatar Sep 18 '22 14:09 mslipper

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

mergify[bot] avatar Sep 19 '22 05:09 mergify[bot]

This is breaking tests because the Geth simulated backend that deploys the contracts on L1 in the devnet sets the block timestamp to zero. We can fix this, but it'll require changes in op-geth to allow you to specify the block timestamp in the simulator.

mslipper avatar Sep 19 '22 23:09 mslipper

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

mergify[bot] avatar Sep 23 '22 17:09 mergify[bot]

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

mergify[bot] avatar Sep 23 '22 17:09 mergify[bot]

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

mergify[bot] avatar Sep 23 '22 17:09 mergify[bot]