PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo-forks/avalanchejs/src/fixtures/utils
Просмотр файла: makeList.ts
import { concatBytes } from '../../utils/buffer';
import type { Serializable } from '../../serializable/common/types';
import { bytesForInt } from './bytesFor';
export const makeList =
<T extends Serializable>(single: () => T) =>
(): T[] =>
[single(), single()];
export const makeListBytes = (single: () => Uint8Array) => () =>
concatBytes(bytesForInt(2), single(), single());
Выполнить команду
Для локальной разработки. Не используйте в интернете!