mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-12 13:35:00 +00:00
raise KeycardExportKeyException
This commit is contained in:
parent
54bb68ad23
commit
564af902e6
@ -77,7 +77,7 @@ method keycardExportKey*(self: StatusGoBackend, derive: bool, makeCurrent: bool,
|
||||
let response = keycard_go.exportKey($inputJSON)
|
||||
let parsedResponse = parseJson(response)
|
||||
if not parsedResponse{"ok"}.getBool():
|
||||
raise KeycardSelectException(error: parsedResponse{"error"}.getStr())
|
||||
raise KeycardExportKeyException(error: parsedResponse{"error"}.getStr())
|
||||
|
||||
result = KeycardExportedKey(
|
||||
privKey: parsedResponse["privateKey"].getStr(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user