Skip to content

Commit

Permalink
Fix SafProvider instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
yagopv committed Apr 24, 2024
1 parent e4c5e0a commit e8ee338
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/protocol-kit/src/SafeFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export interface DeploySafeProps {
}

export interface SafeFactoryConfig {
/** provider - Ethereum EIP-1193 compatible provider */
provider: Eip1193Provider | HttpTransport | SocketTransport
signer?: HexAddress | PrivateKey
/** safeVersion - Versions of the Safe deployed by this Factory contract */
Expand All @@ -46,7 +45,6 @@ export interface SafeFactoryConfig {
}

interface SafeFactoryInitConfig {
/** provider - Ethereum EIP-1193 compatible provider */
provider: Eip1193Provider | HttpTransport | SocketTransport
signer?: HexAddress | PrivateKey
privateKeyOrMnemonic?: string
Expand Down Expand Up @@ -95,7 +93,7 @@ class SafeFactory {
}: SafeFactoryInitConfig): Promise<void> {
this.#provider = provider
this.#signer = signer
this.#safeProvider = new SafeProvider({ provider })
this.#safeProvider = new SafeProvider({ provider, signer })
this.#safeVersion = safeVersion
this.#isL1SafeSingleton = isL1SafeSingleton
this.#contractNetworks = contractNetworks
Expand Down

0 comments on commit e8ee338

Please sign in to comment.