Skip to content

contracts-bedrock: fix compiler warning#5493

Merged
OptimismBot merged 2 commits intodevelopfrom
fix/compiler-test
Apr 19, 2023
Merged

contracts-bedrock: fix compiler warning#5493
OptimismBot merged 2 commits intodevelopfrom
fix/compiler-test

Conversation

@tynes
Copy link
Contributor

@tynes tynes commented Apr 19, 2023

Description

Adds a pure modifier to a test contract's method to silence a compiler warning.

Adds a `pure` modifier to a test contract's method
to silence a compiler warning.
@tynes tynes requested a review from a team as a code owner April 19, 2023 17:13
@tynes tynes requested a review from clabby April 19, 2023 17:13
@changeset-bot
Copy link

changeset-bot bot commented Apr 19, 2023

⚠️ No Changeset found

Latest commit: c16f0c3

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

@netlify
Copy link

netlify bot commented Apr 19, 2023

Deploy Preview for opstack-docs canceled.

Name Link
🔨 Latest commit c16f0c3
🔍 Latest deploy log https://app.netlify.com/sites/opstack-docs/deploys/64403370082b060008321754

@mergify
Copy link
Contributor

mergify bot commented Apr 19, 2023

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

@mergify
Copy link
Contributor

mergify bot commented Apr 19, 2023

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

Copy link
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Forgot to add this in XDM re-entrancy fix pr. LGTM

@OptimismBot OptimismBot merged commit e66312f into develop Apr 19, 2023
@OptimismBot OptimismBot deleted the fix/compiler-test branch April 19, 2023 20:53
@mergify mergify bot removed the on-merge-train label Apr 19, 2023
seolaoh added a commit to kroma-network/kroma that referenced this pull request Aug 9, 2023
`CrossDomainMessager` whereby `relayMessage` naively reset the
`xDomainMsgSender` after a call. The issue here was that a nested call would
reset this value to the `Constants.DEFAULT_L2_SENDER` which deviates from the
expected behavior that the `xDomainMsgSender` is set to the `_sender` for the
entirety of the subcall.
This change sets a message as failed upon re-entry to the `relayMessage`
function by checking the value of `xDomainMsgSender`. We then also remove the
`reentrancyLocks` from storage and don't have to worry about re-entrency here
since any subcall through the `SafeCall` lib to the XDM `relayMessage` will be
caught and recorded as failed by the aforementioned `xDomainMsgSender` check.
Also removes the revert in `relayMessage` when the minimum gas threshold is not
met.

See:
  - ethereum-optimism/optimism#5475
  - ethereum-optimism/optimism#5444
  - ethereum-optimism/optimism#5493
  - ethereum-optimism/optimism#5508
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