Changes made in the MultisigBuilder contract, Added comments and improved code formatting #111
+312
−291
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes made in the MultisigBuilder contract:
Detailed Comments:
Code Formatting:
Documentation Updates:
appendRemainingBytes
,genPrevalidatedSignature
, andextractOwner
.Logic Organization:
sortUniqueSignatures
function for easier comprehension.require(j == threshold, "not enough signatures")
).Console Logging:
Added comments and improved code formatting
Step 1
,Step 2
,Step 3
) to provide a clearer understanding of the contract's workflow.The code is now more structured and ready for further development.
Changes made in the MultisigBuilder contract:
1. Improved Documentation:
sign
,verify
,simulate
, andrun
steps for better understanding._simulateForSigner
and_overrides
by providing context for their usage.2. Formatting Enhancements:
Virtual Functions
,Implemented Functions
).3. Refined Logic:
nonce
function is more descriptive, clearly explaining its debugging role and limitations in production._overrides
function to clarify the sequence and purpose of combining simulation overrides with safe-specific overrides.4. Consistency Improvements:
5. Developer Experience:
IMulticall3
,IGnosisSafe
,Simulation
) for easier integration and cross-referencing._simulateForSigner
and_postCheck
.Summary:
These changes enhance the contract's maintainability, improve developer onboarding, and ensure the functionality is clear and well-documented for future iterations or audits.
feat: enhance readability, formatting, and documentation in Signatures library
Changes made:
Detailed Comments:
Code Formatting:
Documentation Updates:
appendRemainingBytes
,genPrevalidatedSignature
, andextractOwner
.Logic Organization:
sortUniqueSignatures
function for easier comprehension.require(j == threshold, "not enough signatures")
).Console Logging:
These changes improve the maintainability, readability, and usability of the library, making it more developer-friendly.