Skip to content

Commit

Permalink
remove OnlyTSS for set functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Jul 31, 2024
1 parent 4307fc0 commit bfd778c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions v2/src/evm/GatewayEVM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ contract GatewayEVM is

/// @notice Sets the custody contract address.
/// @param _custody Address of the custody contract.
function setCustody(address _custody) external onlyTSS {
// TODO: Set right access control for the method
// https://github.com/zeta-chain/protocol-contracts/issues/255
function setCustody(address _custody) external {
if (custody != address(0)) revert CustodyInitialized();
if (_custody == address(0)) revert ZeroAddress();

Expand All @@ -233,7 +235,9 @@ contract GatewayEVM is

/// @notice Sets the connector contract address.
/// @param _zetaConnector Address of the connector contract.
function setConnector(address _zetaConnector) external onlyTSS {
// TODO: Set right access control for the method
// https://github.com/zeta-chain/protocol-contracts/issues/255
function setConnector(address _zetaConnector) external {
if (zetaConnector != address(0)) revert CustodyInitialized();
if (_zetaConnector == address(0)) revert ZeroAddress();

Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit bfd778c

Please sign in to comment.