Skip u8a -> string -> number[] for qrcode generation (#170)

* Skip u8a -> string -> number[] for qrcode generation

* Fix tests for Uint8Array conversion

* Bumps
This commit is contained in:
Jaco Greeff
2019-07-30 17:26:56 +02:00
committed by GitHub
parent 39a5147fb8
commit 6f5b3c9ccc
8 changed files with 58 additions and 38 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ describe('util', (): void => {
expect(
createFrames(
createSignPayload('5HbgaJEuVN5qGbkhgtuDQANivSWwHXWsC2erP1SQUXgciTVq', '0x12345678')
).map((str): string => u8aToHex(encodeString(str)))
).map((u8a): string => u8aToHex(u8a))
).toEqual([
'0x' +
'00' + // multipart