Skip to content

Commit

Permalink
Make sure that base_decode returns Buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
vgrichina committed Sep 4, 2019
1 parent 8b9e53c commit b50fcd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/utils/serialize.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src.ts/utils/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export function base_encode(value: Uint8Array | string): string {
}

export function base_decode(value: string): Uint8Array {
return bs58.decode(value);
return Buffer.from(bs58.decode(value));
}

const INITIAL_LENGTH = 1024;
Expand Down

0 comments on commit b50fcd8

Please sign in to comment.