Skip to content

Commit

Permalink
Merge pull request #347 from azf20/patch-1
Browse files Browse the repository at this point in the history
use localOwners in signUserOperation on toSafeSmartAccount
  • Loading branch information
plusminushalf authored Jan 8, 2025
2 parents c83d398 + bae15ee commit 8fb7862
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/four-eggs-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"permissionless": patch
---

Fixed `signUserOperation` for `toSafeSmartAccount` when owner is not a LocalAccount.
15 changes: 10 additions & 5 deletions packages/permissionless-test/src/testWithRpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ export const getInstances = async ({
| string
| undefined

const anvilInstance = anvil({
chainId: foundry.id,
port: anvilPort,
forkUrl
})
const anvilInstance = forkUrl
? anvil({
chainId: foundry.id,
port: anvilPort,
forkUrl
})
: anvil({
chainId: foundry.id,
port: anvilPort
})

const altoInstance = alto({
entrypoints: [entryPoint06Address, entryPoint07Address],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ export async function toSafeSmartAccount<

let signatures: Hex | undefined = undefined

for (const owner of owners) {
for (const owner of localOwners) {
signatures = await signUserOperation({
...userOperation,
version,
Expand Down

0 comments on commit 8fb7862

Please sign in to comment.