fix: fix Windows not showing username because of missing cstring

(cherry picked from commit 52ab82f667ae5f003ab8da964f364e6aae3cebdc)
This commit is contained in:
Jonathan Rainville 2020-07-27 15:30:52 -04:00
parent b4a70d6aa4
commit edda9dba6e
No known key found for this signature in database
GPG Key ID: 5F4630B759727D9C
2 changed files with 3 additions and 3 deletions

View File

@ -42,10 +42,10 @@ proc generateAddresses*(n = 5): seq[GeneratedAccount] =
result = Json.decode(generatedAccounts, seq[GeneratedAccount]) result = Json.decode(generatedAccounts, seq[GeneratedAccount])
proc generateAlias*(publicKey: string): string = proc generateAlias*(publicKey: string): string =
result = $nim_status.generateAlias(publicKey.toGoString) result = $nim_status.generateAlias(publicKey.cstring)
proc generateIdenticon*(publicKey: string): string = proc generateIdenticon*(publicKey: string): string =
result = $nim_status.identicon(publicKey.toGoString) result = $nim_status.identicon(publicKey.cstring)
proc ensureDir(dirname: string) = proc ensureDir(dirname: string) =
if not existsDir(dirname): if not existsDir(dirname):

2
vendor/nim-status vendored

@ -1 +1 @@
Subproject commit 677a000c243fcc16244a6107422a8f1aa83acaeb Subproject commit cffc38c9fa0dd570cc3676dd32cfcc92c04b7c86