Skip to content

Commit

Permalink
GH-3400 added missing hex prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitryBespalov committed Apr 8, 2024
1 parent e7458a9 commit 1eaf6a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Multisig/Logic/Ledger/LedgerController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class LedgerController {

let gnosisSafeSignature = r + s + Data([v + 4])

completion(gnosisSafeSignature.toHexString(), nil)
completion(gnosisSafeSignature.toHexStringWithPrefix(), nil)

case .failure(_):
completion(nil, "Please check that Ethereum App is running on the Ledger device.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ extension KeystoneSignFlow: QRCodeScannerViewControllerDelegate {
extension SECP256K1.UnmarshaledSignature {
var safeSignature: String {
let signature = r + s + Data([v + 4])
return signature.toHexString()
return signature.toHexStringWithPrefix()
}

init?(keystoneSignature signature: String, isLegacyTx: Bool, chainId: String) {
Expand Down

0 comments on commit 1eaf6a5

Please sign in to comment.