Commit dc1d5e8f authored by Maurelian's avatar Maurelian

docs(ctb): Add comment regarding proxy address check

parent 3b2f0612
...@@ -136,6 +136,8 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver { ...@@ -136,6 +136,8 @@ contract OptimismPortal is Initializable, ResourceMetering, Semver {
// Prevent users from creating a deposit transaction where this address is the message // Prevent users from creating a deposit transaction where this address is the message
// sender on L2. // sender on L2.
// In the context of the proxy delegate calling to this implementation,
// address(this) will return the address of the proxy.
require( require(
_tx.target != address(this), _tx.target != address(this),
"OptimismPortal: you cannot send messages to the portal contract" "OptimismPortal: you cannot send messages to the portal contract"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment