Skip to content

Commit

Permalink
refactor: refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
VGabriel45 committed Dec 20, 2024
1 parent 19ae948 commit 632978b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
18 changes: 2 additions & 16 deletions src/sdk/account/utils/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export const getAccountMeta = async (
chainId: decoded?.[3]
}
}
} catch (error) {}
} catch (error) { }
return {
name: NEXUS_DOMAIN_NAME,
version: NEXUS_DOMAIN_VERSION,
Expand Down Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions src/sdk/clients/createBicoPaymasterClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 632978b

Please sign in to comment.