Add signer constructors (#5757)
Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
@ -69,6 +69,11 @@ abstract contract MultiSignerERC7913 is AbstractSigner {
|
||||
/// @dev The `threshold` is unreachable given the number of `signers`.
|
||||
error MultiSignerERC7913UnreachableThreshold(uint64 signers, uint64 threshold);
|
||||
|
||||
constructor(bytes[] memory signers_, uint64 threshold_) {
|
||||
_addSigners(signers_);
|
||||
_setThreshold(threshold_);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dev Returns a slice of the set of authorized signers.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user