From 9ba2456eff8b224248826be482a776f7c721aece Mon Sep 17 00:00:00 2001 From: Cayman Date: Fri, 9 Feb 2024 23:06:21 -0500 Subject: [PATCH] fix: relax BitArray#intersectValues types (#339) * fix: relax BitArray#intersectValues types * chore: update ci * chore: update ci --- .github/workflows/benchmark.yml | 2 +- .github/workflows/test.yml | 2 +- packages/ssz/src/value/bitArray.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index d24169e7..52789433 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -21,11 +21,11 @@ jobs: steps: - uses: actions/checkout@v3 + - run: corepack enable - uses: actions/setup-node@v3 with: cache: yarn node-version: 18 - - run: corepack enable - run: yarn --immutable && yarn build - name: Run benchmarks diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ac017c78..d7648faa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,11 +12,11 @@ jobs: node: [16, 18] steps: - uses: actions/checkout@v3 + - run: corepack enable - uses: actions/setup-node@v3 with: node-version: ${{matrix.node}} cache: yarn - - run: corepack enable - name: Bootstrap run: yarn --immutable - name: Build diff --git a/packages/ssz/src/value/bitArray.ts b/packages/ssz/src/value/bitArray.ts index 1767817d..fc593166 100644 --- a/packages/ssz/src/value/bitArray.ts +++ b/packages/ssz/src/value/bitArray.ts @@ -114,7 +114,7 @@ export class BitArray { /** * Returns an array with the indexes which have a bit set to true */ - intersectValues(values: T[]): T[] { + intersectValues(values: ArrayLike): T[] { const yes: T[] = []; if (values.length !== this.bitLen) {