Skip to content

Commit d919b5f

Browse files
Merge pull request #432 from pimlicolabs/fix/multi-sig-safe
fix local owners length
2 parents 2971748 + 0d82154 commit d919b5f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/solid-planes-spend.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"permissionless": patch
3+
---
4+
5+
Fixed owners length check for safe multisig

packages/permissionless/accounts/safe/toSafeSmartAccount.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,7 +1544,7 @@ export async function toSafeSmartAccount<
15441544
return this.signMessage({ message: hash })
15451545
},
15461546
async signMessage({ message }) {
1547-
if (localOwners.length !== owners.length) {
1547+
if (localOwners.length < Number(threshold)) {
15481548
throw new Error(
15491549
"Owners length mismatch, currently not supported"
15501550
)
@@ -1591,7 +1591,7 @@ export async function toSafeSmartAccount<
15911591
: signatureBytes
15921592
},
15931593
async signTypedData(typedData) {
1594-
if (localOwners.length !== owners.length) {
1594+
if (localOwners.length < Number(threshold)) {
15951595
throw new Error(
15961596
"Owners length mismatch, currently not supported"
15971597
)

0 commit comments

Comments
 (0)