Skip to content

Commit

Permalink
set treeDepth to immutable and getter function to pure
Browse files Browse the repository at this point in the history
  • Loading branch information
dcbuild3r committed Sep 6, 2023
1 parent 399dec2 commit 12d09df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abstract/WorldIDBridge.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract contract WorldIDBridge is IWorldID {
///////////////////////////////////////////////////////////////////////////////

/// @notice The depth of the merkle tree used to store identities.
uint8 internal treeDepth;
uint8 internal immutable treeDepth;

/// @notice The amount of time a root is considered as valid on the bridged chain.
uint256 internal ROOT_HISTORY_EXPIRY = 1 weeks;
Expand Down Expand Up @@ -216,7 +216,7 @@ abstract contract WorldIDBridge is IWorldID {
}

/// @notice Gets the Semaphore tree depth the contract was initialized with.
function getTreeDepth() public view virtual returns (uint8) {
function getTreeDepth() public pure virtual returns (uint8) {
return treeDepth;
}
}

0 comments on commit 12d09df

Please sign in to comment.