Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Dec 27, 2024
1 parent 4855e3d commit 1781e86
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/permissionless/accounts/safe/toSafeSmartAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1523,10 +1523,10 @@ export async function toSafeSmartAccount<
)
}

let signature: Hex = "0x"
let signatures: Hex | undefined = undefined

for (const owner of owners) {
signature = await signUserOperation({
signatures = await signUserOperation({
...userOperation,
version,
entryPoint,
Expand All @@ -1537,13 +1537,18 @@ export async function toSafeSmartAccount<
| LocalAccount
>,
chainId: await getMemoizedChainId(),
signatures,
validAfter,
validUntil,
safe4337ModuleAddress
})
}

return signature
if (!signatures) {
throw new Error("No signatures found")
}

return signatures
}
}) as Promise<ToSafeSmartAccountReturnType<entryPointVersion>>
}

0 comments on commit 1781e86

Please sign in to comment.