From a62abbac435670c049c7a2c932f368a7b0f8ac53 Mon Sep 17 00:00:00 2001 From: fabri Date: Wed, 6 Dec 2023 16:55:36 -0300 Subject: [PATCH] updates --- XMTPiOSExample/XMTPiOSExample/ContentView.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/XMTPiOSExample/XMTPiOSExample/ContentView.swift b/XMTPiOSExample/XMTPiOSExample/ContentView.swift index 465bfdb9..39fbb9a1 100644 --- a/XMTPiOSExample/XMTPiOSExample/ContentView.swift +++ b/XMTPiOSExample/XMTPiOSExample/ContentView.swift @@ -126,7 +126,7 @@ struct ContentView: View { func generateWalletWithPrivateKeys() { Task { do { - let privateKeyString = "67633be8c32db5414951db4a9ea9734b1214f8f5ca15d6b16818c0b4ee864653" // Your PrivateKey instance here + let privateKeyString = "private_key" // Your PrivateKey instance here // Function to convert hex string to Data @@ -158,8 +158,7 @@ struct ContentView: View { Task { do { let wallet = try PrivateKey.generate() - let client = try await Client.create(account: wallet, options: .init(api: .init(env: .production, isSecure: true, appVersion: "XMTPTest/v1.0.0"))) - print (client.address); + let client = try await Client.create(account: wallet, options: .init(api: .init(env: .dev, isSecure: true, appVersion: "XMTPTest/v1.0.0"))) let keysData = try client.privateKeyBundle.serializedData() Persistence().saveKeys(keysData)