Skip to content

Commit

Permalink
fix: remove duplicated logic
Browse files Browse the repository at this point in the history
Signed-off-by: bennett <[email protected]>
  • Loading branch information
bmzig committed Nov 7, 2024
1 parent d7550b8 commit 1ecbb3f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contracts/chain-adapters/ForwarderBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ abstract contract ForwarderBase is UUPSUpgradeable, ForwarderInterface {
* @param _newCrossDomainAdmin L1 address of the new cross domain admin.
*/
function setCrossDomainAdmin(address _newCrossDomainAdmin) external onlyAdmin {
if (_newCrossDomainAdmin == address(0)) revert InvalidCrossDomainAdmin();
_setCrossDomainAdmin(_newCrossDomainAdmin);
emit SetXDomainAdmin(_newCrossDomainAdmin);
}

/**
Expand Down

0 comments on commit 1ecbb3f

Please sign in to comment.