Skip to content

Fix for "Reduce of empty array with no initial value" error in ContractFunctionParameters array methods #2355

Fix for "Reduce of empty array with no initial value" error in ContractFunctionParameters array methods

Fix for "Reduce of empty array with no initial value" error in ContractFunctionParameters array methods #2355

Workflow file for this run

name: Common JS
on:
push:
branches:
- main
- develop
- release/*
pull_request:
branches:
- main
- develop
- release/*
jobs:
test-integration-node:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["16", "18"]
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.7.0
- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- uses: pnpm/[email protected]
with:
version: 7.6.0
- name: Build @hashgraph/sdk
run: task build
- name: Install dependencies
working-directory: common_js_test
run: task install
- name: Test
working-directory: common_js_test
run: task test