Closed frontier159 closed 1 year ago
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅
I have read the CLA Document and I hereby sign the CLA
@rmeissner and team - thoughts on this?
After an internal discussion, we decided not to add this for two reasons:
Thanks for the idea 🙏
PR raised for initial feedback/discussion. Tests can be added if the this is a sensible addition.
Motivation: When creating a guard (and perhaps module), there are use cases where signatures need to be checked vs some manual threshold. eg For a guard where I want to ensure very sensitive contracts/functions need a higher number of signers than the default safe threshold.
Utilising the exact
checkNSignatures()
logic of the safe is preferable to duplicating the logic within the guard.As is,
checkNSignatures()
cannot be used, asmsg.sender
is used directly. So if called from the guard, thev == 1
check would fail for the pre-approved owner case.Adding an overloaded
checkNSignatures()
version where the executor address is plumbed through will fix this elegantly.I would love to collaborate on the guard I am developing further. Delegating the threshold calculation to a guard/module would be a killer built-in feature for Safe imo.