From 915bd42a881612fd91ac837a43ccc623a44b7169 Mon Sep 17 00:00:00 2001 From: Tim Schwarz <4171783+tmjssz@users.noreply.github.com> Date: Thu, 25 Jan 2024 15:27:19 +0100 Subject: [PATCH] Remove unused contract parameter in `getSafeProxyFactoryContractInstance` for Web3Adapter --- packages/protocol-kit/src/adapters/web3/Web3Adapter.ts | 5 ----- .../src/adapters/web3/contracts/contractInstancesWeb3.ts | 1 - 2 files changed, 6 deletions(-) diff --git a/packages/protocol-kit/src/adapters/web3/Web3Adapter.ts b/packages/protocol-kit/src/adapters/web3/Web3Adapter.ts index afa426820..701a20232 100644 --- a/packages/protocol-kit/src/adapters/web3/Web3Adapter.ts +++ b/packages/protocol-kit/src/adapters/web3/Web3Adapter.ts @@ -124,13 +124,8 @@ class Web3Adapter implements EthAdapter { if (!contractAddress) { throw new Error('Invalid SafeProxyFactory contract address') } - const proxyFactoryContract = this.getContract( - contractAddress, - customContractAbi ?? (singletonDeployment?.abi as AbiItem[]) - ) return getSafeProxyFactoryContractInstance( safeVersion, - proxyFactoryContract, contractAddress, this, customContractAbi diff --git a/packages/protocol-kit/src/adapters/web3/contracts/contractInstancesWeb3.ts b/packages/protocol-kit/src/adapters/web3/contracts/contractInstancesWeb3.ts index da2a92ac5..7cdb2761d 100644 --- a/packages/protocol-kit/src/adapters/web3/contracts/contractInstancesWeb3.ts +++ b/packages/protocol-kit/src/adapters/web3/contracts/contractInstancesWeb3.ts @@ -211,7 +211,6 @@ export async function getMultiSendCallOnlyContractInstance( export async function getSafeProxyFactoryContractInstance( safeVersion: SafeVersion, - safeProxyFactoryContract_: any, contractAddress: string, web3Adapter: Web3Adapter, customContractAbi?: AbiItem | AbiItem[] | undefined