optimism icon indicating copy to clipboard operation
optimism copied to clipboard

ctb: Add an assert for unreachable condition

Open maurelian opened this issue 3 years ago • 3 comments

Description

Adds another assertion to explicitly identify an invariant which was previously implicit.

Tests

No new tests. Since the condition is unreachable it will require a more advanced testing setup than we currently have to check this properly.

maurelian avatar Oct 25 '22 16:10 maurelian

🦋 Changeset detected

Latest commit: f55445068b84f6591bf61b2b7279a882373e49bc

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 Oct 25 '22 16:10 changeset-bot[bot]

This PR changes implementation code, but doesn't include a changeset. Did you forget to add one?

mergify[bot] avatar Oct 25 '22 16:10 mergify[bot]

Looks like a linting error

contracts/universal/CrossDomainMessenger.sol

║ Line     │ Column   │ Type     │ Message                                                │ Rule ID              ║
╟──────────┼──────────┼──────────┼────────────────────────────────────────────────────────┼──────────────────────╢
║ 30       │ 5        │ warning  │ Variable name must be in mixedCase                     │ var-name-mixedcase   ║
║ 100      │ 5        │ warning  │ Variable name must be in mixedCase                     │ var-name-mixedcase   ║
║ 107      │ 5        │ warning  │ Variable name must be in mixedCase                     │ var-name-mixedcase   ║
║ 291      │ 2        │ error    │ Line length must be no more than 100 but current       │ max-line-length      ║
║          │          │          │ length is 101.                                         │                      ║

tynes avatar Oct 26 '22 00:10 tynes

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

mergify[bot] avatar Oct 26 '22 20:10 mergify[bot]

@maurelian This needs a rebase and should build fine in CI now that a fix for the build cache was merged

tynes avatar Oct 26 '22 20:10 tynes

I haven't seen this flake before

    system_test.go:301: 
        	Error Trace:	/root/project/op-e2e/system_test.go:301
        	Error:      	Should not be zero, but was 0
        	Test:       	TestFinalize
        	Messages:   	must have finalized L2 block

tynes avatar Oct 26 '22 21:10 tynes

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

mergify[bot] avatar Oct 27 '22 05:10 mergify[bot]

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

mergify[bot] avatar Oct 27 '22 05:10 mergify[bot]

Merge failed. Please see automated check logs for more details.

mergify[bot] avatar Oct 27 '22 05:10 mergify[bot]

@Mergifyio refresh

maurelian avatar Oct 27 '22 13:10 maurelian

refresh

✅ Pull request refreshed

mergify[bot] avatar Oct 27 '22 13:10 mergify[bot]

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

mergify[bot] avatar Oct 27 '22 13:10 mergify[bot]

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

mergify[bot] avatar Oct 27 '22 13:10 mergify[bot]