Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
5c0d3226
Unverified
Commit
5c0d3226
authored
Oct 28, 2023
by
Maurelian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test(ctb): Add test for not giving to fallback owner
parent
eb0e1335
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
141 additions
and
41 deletions
+141
-41
LivenessModule.sol
packages/contracts-bedrock/src/Safe/LivenessModule.sol
+2
-1
LivenessModule.t.sol
packages/contracts-bedrock/test/LivenessModule.t.sol
+139
-40
No files found.
packages/contracts-bedrock/src/Safe/LivenessModule.sol
View file @
5c0d3226
...
@@ -213,7 +213,8 @@ contract LivenessModule is ISemver {
...
@@ -213,7 +213,8 @@ contract LivenessModule is ISemver {
);
);
}
}
// Check that the threshold is correct. This check is also correct when there is a single
// Check that"LivenessModule: must remove all owners and transfer to fallback owner if numOwners < minOwners"
// the threshold is correct. This check is also correct when there is a single
// owner, because get75PercentThreshold(1) returns 1.
// owner, because get75PercentThreshold(1) returns 1.
uint256 threshold = SAFE.getThreshold();
uint256 threshold = SAFE.getThreshold();
require(
require(
...
...
packages/contracts-bedrock/test/LivenessModule.t.sol
View file @
5c0d3226
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment