-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: bytes signature library #30
Conversation
Slither reportTHIS CHECKLIST IS NOT COMPLETE. Use
solc-versionImpact: Informational
|
b64d1fa
to
9a3d469
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #30 +/- ##
==========================================
+ Coverage 73.72% 75.87% +2.15%
==========================================
Files 10 9 -1
Lines 411 398 -13
Branches 113 112 -1
==========================================
- Hits 303 302 -1
+ Misses 48 38 -10
+ Partials 60 58 -2
|
bytes[] memory extracted = ByteSignature.extractSignatures(fullSignature, 2); | ||
assertEq(extracted[0], signature1, "The first signature does not match the original signature."); | ||
assertEq(extracted[1], signature2, "The second signature does not match the original signature."); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add another test with 3 just in case? It should work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've added a fuzz test so we test any amount of signatures
It is much better generalized this way. I started with one or two and added three and never changed it. 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A small thing to add one more test with 3 sigs
2faaff6
to
01c11fe
Compare
01c11fe
to
7048cec
Compare
…support libraries yet
7048cec
to
e34c898
Compare
Refactors
BytesSignature.sol
. WDYT @rrecuero ?