diff --git a/src/sdk/account/utils/Utils.ts b/src/sdk/account/utils/Utils.ts index 18634566..5d4d235e 100644 --- a/src/sdk/account/utils/Utils.ts +++ b/src/sdk/account/utils/Utils.ts @@ -279,7 +279,7 @@ export const getAccountMeta = async ( chainId: decoded?.[3] } } - } catch (error) {} + } catch (error) { } return { name: NEXUS_DOMAIN_NAME, version: NEXUS_DOMAIN_VERSION, @@ -410,18 +410,4 @@ export const getAllowance = async ( }) return approval as bigint -} - -export const isNexusClient = (client: Client): client is NexusClient => { - return client.name === "Nexus Client" -} - -export type ExtendedBundlerClient = BundlerClient & { - paymasterContext?: PaymasterContext -} - -export const isBundlerClient = ( - client: Client -): client is ExtendedBundlerClient => { - return client.type === "bundlerClient" -} +} \ No newline at end of file diff --git a/src/sdk/clients/createBicoPaymasterClient.test.ts b/src/sdk/clients/createBicoPaymasterClient.test.ts index de0a878b..d002dcf3 100644 --- a/src/sdk/clients/createBicoPaymasterClient.test.ts +++ b/src/sdk/clients/createBicoPaymasterClient.test.ts @@ -82,14 +82,14 @@ describe.runIf(paymasterTruthy())("bico.paymaster", async () => { nexusAccountAddress = await nexusAccount.getCounterFactualAddress() - nexusClient = (await createNexusClient({ + nexusClient = await createNexusClient({ signer: account, chain, transport: http(), bundlerTransport: http(bundlerUrl), paymaster, ...testParams - })) as NexusClient + }) }) afterAll(async () => { await killNetwork([network?.rpcPort, network?.bundlerPort])