From 934096fe3f3ffb3478d6aaac1a775f75abded0a6 Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Mon, 8 May 2023 17:25:53 +0200 Subject: [PATCH] fix: `keycardUid` param added to `convertToKeycardAccount` proc --- status_go.nim | 4 ++-- status_go/impl.nim | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/status_go.nim b/status_go.nim index 9efa85a..9953128 100644 --- a/status_go.nim +++ b/status_go.nim @@ -212,8 +212,8 @@ proc loginWithKeycard*(accountData: string, password: string, keyHex: string): s defer: go_shim.free(funcOut) return $funcOut -proc convertToKeycardAccount*(accountData: string, settingsJSON: string, password: string, newPassword: string): string = - var funcOut = go_shim.convertToKeycardAccount(accountData.cstring, settingsJSON.cstring, password.cstring, newPassword.cstring) +proc convertToKeycardAccount*(accountData: string, settingsJSON: string, keycardUid: string, password: string, newPassword: string): string = + var funcOut = go_shim.convertToKeycardAccount(accountData.cstring, settingsJSON.cstring, keycardUid.cstring, password.cstring, newPassword.cstring) defer: go_shim.free(funcOut) return $funcOut diff --git a/status_go/impl.nim b/status_go/impl.nim index 7a5c00c..3357823 100644 --- a/status_go/impl.nim +++ b/status_go/impl.nim @@ -85,7 +85,7 @@ proc validateNodeConfig*(configJSON: cstring): cstring {.importc: "ValidateNodeC proc loginWithKeycard*(accountData: cstring, password: cstring, keyHex: cstring): cstring {.importc: "LoginWithKeycard".} -func convertToKeycardAccount*(accountData: cstring, settingsJSON: cstring, password: cstring, newPassword: cstring): cstring {.importc: "ConvertToKeycardAccount".} +func convertToKeycardAccount*(accountData: cstring, settingsJSON: cstring, keycardUid: cstring, password: cstring, newPassword: cstring): cstring {.importc: "ConvertToKeycardAccount".} func convertToRegularAccount*(mnemonic: cstring, currPassword: cstring, newPassword: cstring): cstring {.importc: "ConvertToRegularAccount".}