Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexNi245 committed Nov 19, 2024
1 parent a147f28 commit 4c84734
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/js-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

{
"name": "@dm3-org/dm3-js-sdk",
"license": "BSD-2-Clause",
Expand Down
1 change: 1 addition & 0 deletions packages/js-sdk/src/Dm3Sdk.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ describe('Dm3Sdk', () => {
await dm3.conversations.addConversation('bob.eth');
await dm3.conversations.addConversation('karl.eth');
const c = dm3.conversations.list;

console.log(c);
expect(c.length).toBe(2);
expect(c[0].contact.name).toBe('bob.eth');
Expand Down
14 changes: 4 additions & 10 deletions packages/js-sdk/src/conversation/Conversations.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
/* eslint-disable max-len */
import { Account, normalizeEnsName } from '@dm3-org/dm3-lib-profile';
import {
Account,
DeliveryServiceProfile,
getAccountDisplayName,
normalizeEnsName,
} from '@dm3-org/dm3-lib-profile';
import {
StorageAPI,
Conversation as ConversationDto,
StorageAPI,
} from '@dm3-org/dm3-lib-storage';
import { Contact, Conversation, getEmptyContact } from './types';
import { Tld } from '../tld/Tld';
import { hydrateContract as hydrateContact } from './hydrate/hydrateContact';
import { ethers } from 'ethers';
import { ITLDResolver } from '../tld/nameService/ITLDResolver';
import { hydrateContract as hydrateContact } from './hydrate/hydrateContact';
import { Contact, Conversation, getEmptyContact } from './types';

export class Conversations {
private readonly provider: ethers.providers.JsonRpcProvider;
Expand Down

0 comments on commit 4c84734

Please sign in to comment.