File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
packages/permissionless/accounts/safe Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " permissionless " : patch
3
+ ---
4
+
5
+ Fixed owners length check for safe multisig
Original file line number Diff line number Diff line change @@ -1544,7 +1544,7 @@ export async function toSafeSmartAccount<
1544
1544
return this . signMessage ( { message : hash } )
1545
1545
} ,
1546
1546
async signMessage ( { message } ) {
1547
- if ( localOwners . length !== owners . length ) {
1547
+ if ( localOwners . length < Number ( threshold ) ) {
1548
1548
throw new Error (
1549
1549
"Owners length mismatch, currently not supported"
1550
1550
)
@@ -1591,7 +1591,7 @@ export async function toSafeSmartAccount<
1591
1591
: signatureBytes
1592
1592
} ,
1593
1593
async signTypedData ( typedData ) {
1594
- if ( localOwners . length !== owners . length ) {
1594
+ if ( localOwners . length < Number ( threshold ) ) {
1595
1595
throw new Error (
1596
1596
"Owners length mismatch, currently not supported"
1597
1597
)
You can’t perform that action at this time.
0 commit comments