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