From e8ee3388d9b83df058974e703165b8840d384613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20P=C3=A9rez=20V=C3=A1zquez?= Date: Wed, 24 Apr 2024 11:38:57 +0200 Subject: [PATCH] Fix SafProvider instantiation --- packages/protocol-kit/src/SafeFactory.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/protocol-kit/src/SafeFactory.ts b/packages/protocol-kit/src/SafeFactory.ts index fe4f26570..671897630 100644 --- a/packages/protocol-kit/src/SafeFactory.ts +++ b/packages/protocol-kit/src/SafeFactory.ts @@ -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 */ @@ -46,7 +45,6 @@ export interface SafeFactoryConfig { } interface SafeFactoryInitConfig { - /** provider - Ethereum EIP-1193 compatible provider */ provider: Eip1193Provider | HttpTransport | SocketTransport signer?: HexAddress | PrivateKey privateKeyOrMnemonic?: string @@ -95,7 +93,7 @@ class SafeFactory { }: SafeFactoryInitConfig): Promise { 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