Skip to content

Commit

Permalink
Keep only curent signer
Browse files Browse the repository at this point in the history
  • Loading branch information
ranchalp committed Jan 16, 2025
1 parent 9cfaad5 commit a1472be
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 65 deletions.
30 changes: 30 additions & 0 deletions src/L1/system-contract/SystemConfig.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// SPDX-License-Identifier: MIT
pragma solidity =0.8.24;

import "@openzeppelin/contracts/access/OwnableUpgradable.sol";

contract SystemConfig is OwnableUpgradable {

address public currentSigner;

constructor(address _owner) {
_transferOwnership(_owner);
}

/**
* @dev Update the current signer.
* Only the owner can call this function.
* @param _newSigner The address of the new authorized signer.
*/
function updateSigner(address _newSigner) external onlyOwner {
currentSigner = _newSigner;
}

/**
* @dev Return the current authorized signer.
* @return The authorized signer address.
*/
function getSigner() external view returns (address) {
return currentSigner;
}
}
65 changes: 0 additions & 65 deletions src/L1/system-contract/SystemSignerRegistry.sol

This file was deleted.

0 comments on commit a1472be

Please sign in to comment.