recoverNSignatures() should return all signatures instead of number of signatures specified by requiredSignatures
#3
Labels
bug
Something isn't working
Have you ensured that all of these are up to date?
package.json
)What command(s) is the bug in?
No response
Operating System
None
Describe the bug
recoverNSignatures()
function currently only returnsrequiredSignatures
number of signatures.There could be a case that there are three signatures that are
[valid, invalid, valid]
withrequiredSignatures
= 2. In this case, the caller of this function will never retrieve the last valid signature.I'm looking at this function in the context of
OwnableValidator.sol
recoverNSignatures(). If it requires the caller to know the total num of signatures beforehand in order to retrieve all sign. , then the param used in OwnableValidator.sol recoverNSignatures() should not be_threshold
but the total number of signatures computed by the caller.So seems need to update either the caller side or how
recoverNSignatures()
works.@kopy-kat see if this suggestion makes sense to you. Thanks.
The text was updated successfully, but these errors were encountered: