Commit e2eb747a authored by Maurelian's avatar Maurelian

feat(ctb): Add min owners sanity check in Liveness Module constructor

parent ce971438
...@@ -55,8 +55,11 @@ contract LivenessModule is ISemver { ...@@ -55,8 +55,11 @@ contract LivenessModule is ISemver {
SAFE = _safe; SAFE = _safe;
LIVENESS_GUARD = _livenessGuard; LIVENESS_GUARD = _livenessGuard;
LIVENESS_INTERVAL = _livenessInterval; LIVENESS_INTERVAL = _livenessInterval;
MIN_OWNERS = _minOwners;
FALLBACK_OWNER = _fallbackOwner; FALLBACK_OWNER = _fallbackOwner;
MIN_OWNERS = _minOwners;
require(
_minOwners < _safe.getOwners().length, "LivenessModule: minOwners must be less than the number of owners"
);
} }
/// @notice This function can be called by anyone to remove an owner that has not signed a transaction /// @notice This function can be called by anyone to remove an owner that has not signed a transaction
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment