11import { ethers , Wallet } from 'ethers'
22import RNFS from 'react-native-fs'
33import { ArchiveOptions } from 'xmtp-react-native-sdk/lib/ArchiveOptions'
4- import { InstallationId } from 'xmtp-react-native-sdk/lib/Client'
5- import { XMTPEnvironment } from 'xmtp-react-native-sdk/lib/Client'
4+ import {
5+ InstallationId ,
6+ XMTPEnvironment ,
7+ } from 'xmtp-react-native-sdk/lib/Client'
8+
69import {
710 Test ,
811 assert ,
@@ -293,7 +296,6 @@ test('can make a client', async () => {
293296 dbEncryptionKey : keyBytes ,
294297 deviceSyncEnabled : false ,
295298 appVersion : '0.0.0' ,
296- gatewayUrl : 'https://xmtp3.org'
297299 } )
298300
299301 const inboxId = await Client . getOrCreateInboxId (
@@ -308,7 +310,6 @@ test('can make a client', async () => {
308310 return true
309311} )
310312
311- // https://payer.testnet-staging.xmtp.network:443
312313test ( 'can make a new client and build existing from existing db using d14n staging testnet' , async ( ) => {
313314 // eslint-disable-next-line @typescript-eslint/no-unused-vars
314315 const keyBytes = new Uint8Array ( [
@@ -326,15 +327,12 @@ test('can make a new client and build existing from existing db using d14n stagi
326327 dbDirectory : dbDirPath ,
327328 deviceSyncEnabled : false ,
328329 appVersion : '0.0.0' ,
329- gatewayUrl : 'https://payer.testnet-staging.xmtp.network:443'
330+ gatewayUrl : 'https://payer.testnet-staging.xmtp.network:443' ,
330331 }
331-
332+
332333 const client = await Client . createRandom ( options )
333334
334- const inboxId = await Client . getOrCreateInboxId (
335- client . publicIdentity ,
336- 'dev'
337- )
335+ const inboxId = await Client . getOrCreateInboxId ( client . publicIdentity , 'dev' )
338336
339337 assert (
340338 client . inboxId === inboxId ,
0 commit comments