diff --git a/src/index.ts b/src/index.ts index 9715410b1..167f85230 100644 --- a/src/index.ts +++ b/src/index.ts @@ -255,8 +255,8 @@ export async function createV3( export async function buildV3( address: string, - chainId?: number | undefined, environment: 'local' | 'dev' | 'production', + chainId?: number | undefined, appVersion?: string | undefined, enableV3?: boolean | undefined, dbEncryptionKey?: Uint8Array | undefined, diff --git a/src/lib/Client.ts b/src/lib/Client.ts index ca4dd7c33..82d92b096 100644 --- a/src/lib/Client.ts +++ b/src/lib/Client.ts @@ -438,8 +438,8 @@ export class Client< } const client = await XMTPModule.buildV3( address, - chainId, options.env, + chainId, options.appVersion, Boolean(options.enableV3), options.dbEncryptionKey,