This repository has been archived by the owner on May 26, 2023. It is now read-only.
obront - The CrossDomainMessenger process is explained incorrectly in the spec #108
Labels
Has Duplicates
A valid issue with 1+ other issues describing the same vulnerability
Reward
A payout will be made for this issue
Specification
An issue related to the specification (low severity)
obront
low
The CrossDomainMessenger process is explained incorrectly in the spec
Summary
The process for using the L1CrossDomainMessenger has not been updated in the spec, and it still explains the pre-Bedrock process rather than the updated process.
Vulnerability Detail
The spec explains:
This is no longer the process. In Bedrock:
relayMessage
(or any other function) on CrossDomainMessengerImpact
The spec is still showing the old withdrawal process, and doesn't accurately reflect the new process that will exist in Bedrock.
Code Snippet
https://github.com/ethereum-optimism/optimism/blob/develop/specs/messengers.md#message-passing
https://github.com/sherlock-audit/2023-01-optimism/blob/main/optimism/packages/contracts-bedrock/contracts/L1/OptimismPortal.sol#L160-L344
Tool used
Manual Review
Recommendation
Update the explanation of the CrossDomainMessenger in the spec to explain the new withdrawal process.
The text was updated successfully, but these errors were encountered: