Skip to content

Commit

Permalink
add param to encrypted method
Browse files Browse the repository at this point in the history
  • Loading branch information
kele-leanes committed Dec 5, 2023
1 parent d66813b commit e71880d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/XMTP/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ public final class Client: Sendable {
#endif
let keys = try await PrivateKeyBundleV1.generate(wallet: account, options: options)
let keyBundle = PrivateKeyBundle(v1: keys)
let encryptedKeys = try await keyBundle.encrypted(with: account)

let encryptedKeys = try await keyBundle.encrypted(with: account, preEnableIdentityCallback: options?.preEnableIdentityCallback)
var authorizedIdentity = AuthorizedIdentity(privateKeyBundleV1: keys)
authorizedIdentity.address = account.address
let authToken = try await authorizedIdentity.createAuthToken()
Expand Down

0 comments on commit e71880d

Please sign in to comment.