From c0b2d248b150ff3ed92a60935c8b24d605918737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= Date: Mon, 27 May 2024 12:44:52 +0200 Subject: [PATCH] Removing the last editor check --- packages/contracts/src/governance/MainVotingPlugin.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/contracts/src/governance/MainVotingPlugin.sol b/packages/contracts/src/governance/MainVotingPlugin.sol index a99620c..8f30dac 100644 --- a/packages/contracts/src/governance/MainVotingPlugin.sol +++ b/packages/contracts/src/governance/MainVotingPlugin.sol @@ -151,7 +151,9 @@ contract MainVotingPlugin is Addresslist, MajorityVotingBase, IEditors, IMembers function leaveSpace() public { if (!isEditor(msg.sender)) { revert NotAnEditor(); - } else if (addresslistLength() <= 1) revert NoEditorsLeft(); + } + // Not checking whether msg.sender is the last editor. It is acceptable + // that a DAO/Space remains in read-only mode, as it can always be forked. address[] memory _editors = new address[](1); _editors[0] = msg.sender;