Skip to content

Commit

Permalink
Merge pull request #3401 from safe-global/GH-3400/fix-hardware-wallet…
Browse files Browse the repository at this point in the history
…-signatures

GH-3400 transaction creation with ledger and keystone
  • Loading branch information
DmitryBespalov authored Apr 8, 2024
2 parents e7458a9 + 1eaf6a5 commit b7bdc71
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 b7bdc71

Please sign in to comment.