Merge pull request #40 from status-im/fix/windows-cstring

fix: fix username not showing on Windows because of missing cstring
This commit is contained in:
Jonathan Rainville 2020-07-27 15:55:26 -04:00 committed by GitHub
commit cffc38c9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

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

View File

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