Skip to content

Commit cda40a0

Browse files
committed
add test
1 parent 1614fd8 commit cda40a0

File tree

3 files changed

+57
-2
lines changed

3 files changed

+57
-2
lines changed

src/shared/utils/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function fetchValidatorList(url: string): Promise<UNLBlob> {
4040
* @returns The active UNLBlob parsed from UNLV2 format.
4141
* @throws Error if no active blob found.
4242
*/
43-
function getActiveBlobV2(unl: UNLV2): UNLBlob {
43+
export function getActiveBlobV2(unl: UNLV2): UNLBlob {
4444
let activeBlob
4545
for (const blobItem of unl.blobs_v2) {
4646
const currentBlob: UNLBlob = parseBlob(blobItem.blob)
@@ -69,7 +69,7 @@ function getActiveBlobV2(unl: UNLV2): UNLBlob {
6969
* @param blob - The UNLBlob to parse.
7070
* @returns The parsed UNLBlob.
7171
*/
72-
function parseBlob(blob: string): UNLBlob {
72+
export function parseBlob(blob: string): UNLBlob {
7373
const buf = Buffer.from(blob, 'base64')
7474
const blobParsed: UNLBlob = JSON.parse(buf.toString('ascii'))
7575
return blobParsed

0 commit comments

Comments
 (0)