Skip to content

Commit

Permalink
New address system #229
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiaszCudnik committed Jun 11, 2019
1 parent 83f981d commit 612b584
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/utils.ts
Expand Up @@ -16,6 +16,7 @@ export function unixToTimestamp(timestamp: number) {
return new Date((timestamp - epoch) * 1000).getTime() / 1000;
}

// TODO verify using `bech32-buffer` or `dpos-offline`
export function normalizeAddress(address: string): string {
const normalizedAddress = address.trim().toUpperCase();
if (!normalizedAddress.match(/^\d{1,20}R$/)) {
Expand Down

0 comments on commit 612b584

Please sign in to comment.