mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-28 23:35:13 +00:00
chore(@desktop/keycard): updateKeycardUid
proc added to the wa service
This commit is contained in:
parent
c8bb6ae30e
commit
cf7bc0325b
@ -535,6 +535,14 @@ QtObject:
|
||||
error "error: ", procName="setKeycardUnlocked", errName = e.name, errDesription = e.msg
|
||||
return false
|
||||
|
||||
proc updateKeycardUid*(self: Service, oldKeycardUid: string, newKeycardUid: string): bool =
|
||||
try:
|
||||
let response = backend.updateKeycardUID(oldKeycardUid, newKeycardUid)
|
||||
return self.responseHasNoErrors("updateKeycardUid", response)
|
||||
except Exception as e:
|
||||
error "error: ", procName="updateKeycardUid", errName = e.name, errDesription = e.msg
|
||||
return false
|
||||
|
||||
proc deleteKeycard*(self: Service, keycardUid: string): bool =
|
||||
try:
|
||||
let response = backend.deleteKeycard(keycardUid)
|
||||
|
@ -234,5 +234,9 @@ rpc(keycardLocked, "accounts"):
|
||||
rpc(keycardUnlocked, "accounts"):
|
||||
keycardUid: string
|
||||
|
||||
rpc(updateKeycardUID, "accounts"):
|
||||
oldKeycardUID: string
|
||||
newKeycardUID: string
|
||||
|
||||
rpc(deleteKeycard, "accounts"):
|
||||
keycardUid: string
|
2
vendor/status-go
vendored
2
vendor/status-go
vendored
@ -1 +1 @@
|
||||
Subproject commit e4ca8a256c35bfc3f3b435e4f7f625a9a799f020
|
||||
Subproject commit 698c32f3e3684dd5918b8f38aa55fc568e1e7639
|
Loading…
x
Reference in New Issue
Block a user