Skip to content

Commit

Permalink
fix issue in BaseContract
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniSomoza authored and dasanra committed May 16, 2024
1 parent 6702b3d commit a74b809
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
SafeWebAuthnSignerFactory_1_4_1_ContractArtifacts
} from '@safe-global/safe-core-sdk-types'
import SafeProvider from '@safe-global/protocol-kit/SafeProvider'
import { ContractRunner } from 'ethers'

/**
* SafeWebAuthnSignerFactoryContract_v1_4_1 is the implementation specific to the Safe Proxy Factory contract version 1.4.1.
Expand Down Expand Up @@ -35,21 +34,12 @@ class SafeWebAuthnSignerFactoryContract_v1_4_1
chainId: bigint,
safeProvider: SafeProvider,
customContractAddress?: string,
customContractAbi?: SafeWebAuthnSignerFactoryContract_v1_4_1_Abi,
runner?: ContractRunner | null
customContractAbi?: SafeWebAuthnSignerFactoryContract_v1_4_1_Abi
) {
const safeVersion = '1.4.1'
const defaultAbi = SafeWebAuthnSignerFactory_1_4_1_ContractArtifacts.abi

super(
chainId,
safeProvider,
defaultAbi,
safeVersion,
customContractAddress,
customContractAbi,
runner
)
super(chainId, safeProvider, defaultAbi, safeVersion, customContractAddress, customContractAbi)

this.safeVersion = safeVersion
}
Expand Down
3 changes: 1 addition & 2 deletions packages/protocol-kit/src/contracts/contractInstances.ts
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,7 @@ export async function getSafeWebAuthnSignerFactoryContractInstance(
chainId,
safeProvider,
contractAddress,
customContractAbi as SafeWebAuthnSignerFactoryContract_v1_4_1_Abi,
safeProvider.getExternalProvider()
customContractAbi as SafeWebAuthnSignerFactoryContract_v1_4_1_Abi
)

await safeWebAuthnSignerFactoryContractInstance.init()
Expand Down

0 comments on commit a74b809

Please sign in to comment.