diff --git a/src/actions/public.ts b/src/actions/public.ts index d4ba32a6..d8e11fe5 100644 --- a/src/actions/public.ts +++ b/src/actions/public.ts @@ -1,11 +1,9 @@ import type { Address, - Chain, ContractFunctionExecutionErrorType, ContractFunctionRevertedErrorType, Hex, - PublicClient, - Transport + PublicClient } from "viem" import { BaseError } from "viem" @@ -52,10 +50,8 @@ export class InvalidEntryPointError extends BaseError { * * // Return '0x7a88a206ba40b37a8c07a2b5688cf8b287318b63' */ -export const getSenderAddress = async < - TPublicClient extends PublicClient = PublicClient ->( - publicClient: TPublicClient, +export const getSenderAddress = async ( + publicClient: PublicClient, { initCode, entryPoint }: GetSenderAddressParams ): Promise
=> { try { diff --git a/test/index.test.ts b/test/index.test.ts index 2255707d..f8eea869 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -16,7 +16,6 @@ import { import { http, Hex, - HttpTransport, WalletClient, concatHex, createPublicClient, @@ -52,7 +51,7 @@ const chain = "goerli" const account = privateKeyToAccount(process.env.TEST_PRIVATE_KEY as Hex) const factoryAddress = "0x9406Cc6185a346906296840746125a0E44976454" as Address -const publicClient = createPublicClient({ +const publicClient = createPublicClient({ chain: goerli, transport: http(process.env.RPC_URL as string) })