Update docs
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// OpenZeppelin Contracts (last updated v4.6.0) (crosschain/polygon/CrossChainEnabledPolygonChild.sol)
|
||||
// OpenZeppelin Contracts (last updated v4.7.0) (crosschain/polygon/CrossChainEnabledPolygonChild.sol)
|
||||
|
||||
pragma solidity ^0.8.4;
|
||||
|
||||
@ -63,10 +63,10 @@ abstract contract CrossChainEnabledPolygonChild is IFxMessageProcessor, CrossCha
|
||||
address rootMessageSender,
|
||||
bytes calldata data
|
||||
) external override nonReentrant {
|
||||
require(msg.sender == _fxChild, "unauthorized cross-chain relay");
|
||||
if (!_isCrossChain()) revert NotCrossChainCall();
|
||||
|
||||
_sender = rootMessageSender;
|
||||
Address.functionDelegateCall(address(this), data, "crosschain execution failled");
|
||||
Address.functionDelegateCall(address(this), data, "cross-chain execution failed");
|
||||
_sender = DEFAULT_SENDER;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user