-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
payable
modifier from the sendMessage
payable
from the sendMessage
Good catch. Can you bump the semver in the contract to |
Would be great to add a test that ensures the method reverts when sent ETH, to avoid future regressions |
I added a new test case to ensure it reverts when sent ETH and also run |
packages/contracts-bedrock/test/L2/L2ToL2CrossDomainMessenger.t.sol
Outdated
Show resolved
Hide resolved
Thanks! You just need to run optimism/packages/contracts-bedrock/justfile Lines 67 to 68 in bcc734b
@tynes It looks like this is not run as part of of |
Thank you for this! |
9cd71a5
…1543) * fix: remove the `payable` from the `sendMessage` * chore: bump L2ToL2CrossDomainMessenger version into 1.0.0-beta.3 * refactor: using encodeCall() instead of encodeWithSelector()
Description
remove the
payable
modifier from thesendMessage
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