Skip to content

Commit

Permalink
Fix signer not propagated
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed May 6, 2024
1 parent 21c8ab7 commit c28de44
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/account-abstraction-kit/src/AccountAbstraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ class AccountAbstraction {
const isSafeDeployed = await safeProvider.isContractDeployed(safeAddress)

if (isSafeDeployed) {
this.protocolKit = await Safe.create({ provider: this.#provider, safeAddress })
this.protocolKit = await Safe.create({
provider: this.#provider,
signer: this.#signer,
safeAddress
})
} else {
this.protocolKit = await Safe.create({
provider: this.#provider,
signer: this.#signer,
predictedSafe: { safeAccountConfig }
})
}
Expand Down

0 comments on commit c28de44

Please sign in to comment.