Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
humanagent committed Dec 6, 2023
1 parent 7429910 commit a62abba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions XMTPiOSExample/XMTPiOSExample/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit a62abba

Please sign in to comment.