Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
helper-functions, index: Format with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis authored and Jannis Pohlmann committed May 15, 2019
1 parent 9d9a08a commit 7885582
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 103 deletions.
12 changes: 6 additions & 6 deletions helper-functions.ts
@@ -1,4 +1,4 @@
import {ByteArray, BigInt} from "./index";
import { ByteArray, BigInt } from './index'

/**
* Takes 2 ByteArrays and concatenates them
Expand All @@ -7,14 +7,14 @@ import {ByteArray, BigInt} from "./index";
* @returns A concatenated ByteArray
*/
export function concat(a: ByteArray, b: ByteArray): ByteArray {
let out = new Uint8Array(a.length + b.length);
let out = new Uint8Array(a.length + b.length)
for (let i = 0; i < a.length; i++) {
out[i] = a[i];
out[i] = a[i]
}
for (let j = 0; j < b.length; j++) {
out[a.length + j] = b[j];
out[a.length + j] = b[j]
}
return out as ByteArray;
return out as ByteArray
}

/**
Expand Down Expand Up @@ -78,4 +78,4 @@ export function addQm(a: ByteArray): ByteArray {
out[i + 2] = a[i]
}
return out as ByteArray
}
}

0 comments on commit 7885582

Please sign in to comment.