Skip to content

Commit

Permalink
Merge pull request #948 from WalletConnect/bugfix/auth-approve
Browse files Browse the repository at this point in the history
[WalletApp] Auth approve hotfix
  • Loading branch information
flypaper0 committed Jul 7, 2023
2 parents bd8aafc + f11f012 commit 6709b57
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@ final class AuthRequestInteractor {
}

func approve(request: AuthRequest, importAccount: ImportAccount) async throws {
let privateKey = importAccount.privateKey.data(using: .utf8)!
let account = importAccount.account
let signature = try messageSigner.sign(
payload: request.payload.cacaoPayload(address: account.address),
privateKey: privateKey,
privateKey: Data(hex: importAccount.privateKey),
type: .eip191)
try await Web3Wallet.instance.respond(requestId: request.id, signature: signature, from: account)
}
Expand Down

0 comments on commit 6709b57

Please sign in to comment.