From 928135fd3c40dd86a7e43e377234d7d987a7c888 Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Wed, 4 Dec 2024 11:59:01 -0600 Subject: [PATCH 1/2] Do not create DB on static canMessage --- sdks/node-sdk/src/Client.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sdks/node-sdk/src/Client.ts b/sdks/node-sdk/src/Client.ts index 674b4c15..b479bc9f 100644 --- a/sdks/node-sdk/src/Client.ts +++ b/sdks/node-sdk/src/Client.ts @@ -313,10 +313,6 @@ export class Client { const accountAddress = "0x0000000000000000000000000000000000000000"; const host = ApiUrls[env ?? "dev"]; const isSecure = host.startsWith("https"); - const dbPath = join( - process.cwd(), - `xmtp-${env ?? "dev"}-${accountAddress}.db3`, - ); const inboxId = (await getInboxIdForAddress(host, isSecure, accountAddress)) || generateInboxId(accountAddress); @@ -325,7 +321,7 @@ export class Client { signMessage: () => new Uint8Array(), }; const client = new Client( - await createClient(host, isSecure, dbPath, inboxId, accountAddress), + await createClient(host, isSecure, undefined, inboxId, accountAddress), signer, [], ); From 3205b24a3ecbcc6c4ff3843c4d1fb327c9e2450b Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Wed, 4 Dec 2024 12:01:55 -0600 Subject: [PATCH 2/2] Create hungry-dodos-own.md --- .changeset/hungry-dodos-own.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/hungry-dodos-own.md diff --git a/.changeset/hungry-dodos-own.md b/.changeset/hungry-dodos-own.md new file mode 100644 index 00000000..357f7f26 --- /dev/null +++ b/.changeset/hungry-dodos-own.md @@ -0,0 +1,5 @@ +--- +"@xmtp/node-sdk": patch +--- + +Do not create DB on static canMessage