Add signer constructors (#5757)

Co-authored-by: ernestognw <ernestognw@gmail.com>
This commit is contained in:
Hadrien Croubois
2025-06-20 13:09:28 +02:00
committed by GitHub
parent 61f81e313c
commit 6079eb3f01
16 changed files with 49 additions and 56 deletions

View File

@ -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.
*