Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Commit

Permalink
remove as any
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Oct 31, 2024
1 parent 6c91386 commit 67b99fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/bot-kit-pro/src/bot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("Bot", () => {
const wallet = Wallet.createRandom()
keys = await Client.getKeys(wallet, {
env: "dev",
apiClientFactory: GrpcApiClient.fromOptions as any,
apiClientFactory: GrpcApiClient.fromOptions,
})
})

Expand Down Expand Up @@ -61,7 +61,7 @@ describe("Bot", () => {
const config = getConfig()
const bot = await Bot.create(config, dataSource)
const otherClient = await Client.create(Wallet.createRandom(), {
apiClientFactory: GrpcApiClient.fromOptions as any,
apiClientFactory: GrpcApiClient.fromOptions,
})
const convo = await bot.client.conversations.newConversation(
otherClient.address,
Expand All @@ -82,7 +82,7 @@ describe("Bot", () => {
})
const bot = await Bot.create(config, dataSource)
const otherClient = await Client.create(Wallet.createRandom(), {
apiClientFactory: GrpcApiClient.fromOptions as any,
apiClientFactory: GrpcApiClient.fromOptions,
})
await sleep(100)
const convo = await otherClient.conversations.newConversation(
Expand Down
2 changes: 1 addition & 1 deletion packages/bot-kit-pro/src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default class Bot {
privateKeyOverride: xmtpKeys,
basePersistence,
disablePersistenceEncryption: true,
apiClientFactory: GrpcApiClient.fromOptions as any,
apiClientFactory: GrpcApiClient.fromOptions,
...config.clientOptions,
})
await findOrCreateBot(datasource, config.name)
Expand Down

0 comments on commit 67b99fa

Please sign in to comment.