Skip to content

Commit

Permalink
closer on frames
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Dec 19, 2024
1 parent 4be7d6a commit 9f3773b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/XMTPiOS/Frames/FramesClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class FramesClient {
let untrustedData = FramePostUntrustedData(
url: frameUrl, timestamp: UInt64(now), buttonIndex: buttonIndex,
inputText: inputText, state: state,
walletAddress: self.xmtpClient.address,
walletAddress: xmtpClient.address,
opaqueConversationIdentifier: opaqueConversationIdentifier,
unixTimestamp: UInt32(now)
)
Expand All @@ -71,7 +71,7 @@ public class FramesClient {
}

private func signDigest(message: String) async throws -> Data {
return try self.xmtpClient.signWithInstallationKey(message: message)
return try xmtpClient.signWithInstallationKey(message: message)
}

private func buildSignedFrameAction(actionBodyInputs: FrameActionBody)
Expand All @@ -83,8 +83,8 @@ public class FramesClient {
var frameAction = FrameAction()
frameAction.actionBody = try actionBodyInputs.serializedData()
frameAction.installationSignature = signature
frameAction.installationID = self.xmtpClient.installationID.hexToData
frameAction.inboxID = self.xmtpClient.inboxID
frameAction.installationID = xmtpClient.installationID.hexToData
frameAction.inboxID = xmtpClient.inboxID

return try frameAction.serializedData()
}
Expand Down

0 comments on commit 9f3773b

Please sign in to comment.