Commit 9e92b66f authored by Mark Tyneway's avatar Mark Tyneway

contracts-bedrock: CrossDomainOwnable3 use `msg.sender`

Instead of `_msgSender`
parent dfd0b7a6
...@@ -51,7 +51,7 @@ abstract contract CrossDomainOwnable3 is Ownable { ...@@ -51,7 +51,7 @@ abstract contract CrossDomainOwnable3 is Ownable {
*/ */
function _checkOwner() internal view override { function _checkOwner() internal view override {
if (isLocal) { if (isLocal) {
require(owner() == _msgSender(), "CrossDomainOwnable3: caller is not the owner"); require(owner() == msg.sender, "CrossDomainOwnable3: caller is not the owner");
} else { } else {
L2CrossDomainMessenger messenger = L2CrossDomainMessenger( L2CrossDomainMessenger messenger = L2CrossDomainMessenger(
Predeploys.L2_CROSS_DOMAIN_MESSENGER Predeploys.L2_CROSS_DOMAIN_MESSENGER
......
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