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

fix: remove the payable from the sendMessage #11543

Merged
merged 3 commits into from
Aug 23, 2024

Conversation

PinelliaC
Copy link
Contributor

Description

remove the payable modifier from the sendMessage

ensure this implementation stays consistent with the specs

Tests

Please describe any tests you've added. If you've added no tests, or left important behavior untested, please explain why not.

Additional context

Add any other context about the problem you're solving.

Metadata

  • Fixes #[Link to Issue]

@PinelliaC PinelliaC requested a review from a team as a code owner August 21, 2024 03:51
@PinelliaC PinelliaC requested a review from mds1 August 21, 2024 03:51
@PinelliaC PinelliaC changed the title fix: remove the payable modifier from the sendMessage fix: remove the payable from the sendMessage Aug 21, 2024
@tynes
Copy link
Contributor

tynes commented Aug 21, 2024

Good catch. Can you bump the semver in the contract to 1.0.0-beta.3 and also run just snapshots to regenerate the snapshots?

@mds1
Copy link
Contributor

mds1 commented Aug 21, 2024

Would be great to add a test that ensures the method reverts when sent ETH, to avoid future regressions

@PinelliaC
Copy link
Contributor Author

I added a new test case to ensure it reverts when sent ETH and also run just snapshots, but CI still didn’t pass. Is there anything else I need to do?

@mds1
Copy link
Contributor

mds1 commented Aug 22, 2024

Thanks! You just need to run just semver-lock to regenerate the lockfiles:

semver-lock:
forge script scripts/autogen/SemverLock.s.sol

@tynes It looks like this is not run as part of of just snapshots, but it probably should be?

@tynes
Copy link
Contributor

tynes commented Aug 23, 2024

Thank you for this!

@tynes tynes added this pull request to the merge queue Aug 23, 2024
Merged via the queue into ethereum-optimism:develop with commit 9cd71a5 Aug 23, 2024
58 checks passed
samlaf pushed a commit to samlaf/optimism that referenced this pull request Nov 10, 2024
…1543)

* fix: remove the `payable` from the `sendMessage`

* chore: bump L2ToL2CrossDomainMessenger version into 1.0.0-beta.3

* refactor: using encodeCall() instead of encodeWithSelector()
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.

3 participants