fix: `keycardUid` param added to `convertToKeycardAccount` proc

This commit is contained in:
Sale Djenic 2023-05-08 17:25:53 +02:00 committed by saledjenic
parent 534c04dc73
commit 87a4e8ca3e
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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".}