From ee92d8e792df022e86542f9a29e746333735978b Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 27 Jul 2020 15:30:28 -0400 Subject: [PATCH] fix: fix username not showing on Windows because of missing cstring --- src/nim_status.nim | 4 ++-- src/status_go.nim | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nim_status.nim b/src/nim_status.nim index 009f039..f5eb706 100644 --- a/src/nim_status.nim +++ b/src/nim_status.nim @@ -77,12 +77,12 @@ proc sendTransaction*(jsonArgs: cstring, password: cstring): cstring {.exportc.} result = status_go.SendTransaction(jsonArgs, password) tearDownForeignThreadGc() -proc generateAlias*(pk: GoString): cstring {.exportc.} = +proc generateAlias*(pk: cstring): cstring {.exportc.} = setupForeignThreadGc() result = status_go.GenerateAlias(pk) tearDownForeignThreadGc() -proc identicon*(pk: GoString): cstring {.exportc.} = +proc identicon*(pk: cstring): cstring {.exportc.} = setupForeignThreadGc() result = status_go.Identicon(pk) tearDownForeignThreadGc() diff --git a/src/status_go.nim b/src/status_go.nim index 7a1e9d4..00fed5d 100644 --- a/src/status_go.nim +++ b/src/status_go.nim @@ -28,9 +28,9 @@ proc SetSignalEventCallback*(callback: SignalCallback) {.importc: "SetSignalEven proc SendTransaction*(jsonArgs: cstring, password: cstring): cstring {.importc: "SendTransaction".} -proc GenerateAlias*(pk: GoString): cstring {.importc: "GenerateAlias".} +proc GenerateAlias*(pk: cstring): cstring {.importc: "GenerateAlias".} -proc Identicon*(pk: GoString): cstring {.importc: "Identicon".} +proc Identicon*(pk: cstring): cstring {.importc: "Identicon".} proc Login*(accountData: cstring, password: cstring): cstring {.importc: "Login".}