Skip to content

Commit

Permalink
refactor: change chainId to rollupChainId
Browse files Browse the repository at this point in the history
  • Loading branch information
renlulu committed Apr 2, 2024
1 parent 3e27503 commit cad2172
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions contracts/src/core/MachServiceManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ contract MachServiceManager is
IAVSDirectory __avsDirectory,
IRegistryCoordinator __registryCoordinator,
IStakeRegistry __stakeRegistry,
uint256 __chainId
uint256 __rollupChainId
)
BLSSignatureChecker(__registryCoordinator)
ServiceManagerBase(__avsDirectory, __registryCoordinator, __stakeRegistry)
MachServiceManagerStorage(__chainId)
MachServiceManagerStorage(__rollupChainId)
{
_disableInitializers();
}
Expand Down
6 changes: 3 additions & 3 deletions contracts/src/core/MachServiceManagerStorage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ abstract contract MachServiceManagerStorage {
uint256 public constant THRESHOLD_DENOMINATOR = 100;

/// @notice Rollup chain id, it is different from block.chainid
uint256 public immutable chainId;
uint256 public immutable rollupChainId;

EnumerableSet.Bytes32Set internal _messageHashes;

Expand All @@ -38,7 +38,7 @@ abstract contract MachServiceManagerStorage {
// slither-disable-next-line shadowing-state
uint256[46] private __GAP;

constructor(uint256 _chainId) {
chainId = _chainId;
constructor(uint256 _rollupChainId) {
rollupChainId = _rollupChainId;
}
}

0 comments on commit cad2172

Please sign in to comment.