Skip to content

Commit 94d69cb

Browse files
ci(npm-random-beacon): pin @threshold-network/solidity-contracts to 1.2.1
The `development` dist-tag was bumped to 1.3.0-dev.16, which refactored `TokenStaking` so `approveApplication` is no longer exposed by the deployed ABI. The deploy script `solidity/random-beacon/deploy/05_approve_random_beacon_in_token_staking.ts` calls that function and fails the CI publish step. Pin to the last compatible version (1.2.1) so publishes succeed while the deploy scripts and Go ABI bindings are migrated to the 1.3 API in a separate PR.
1 parent 980587b commit 94d69cb

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/npm-random-beacon.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,15 @@ jobs:
3434
cache-dependency-path: solidity/random-beacon/yarn.lock
3535

3636
- name: Resolve latest contracts
37+
# `@threshold-network/solidity-contracts` is pinned to 1.2.1 because
38+
# the `development` dist-tag was bumped to 1.3.0-dev, which refactored
39+
# `TokenStaking` and removed `approveApplication` (called by
40+
# `deploy/05_approve_random_beacon_in_token_staking.ts`). Unpin once
41+
# the deploy scripts and Go ABI bindings are migrated to the 1.3 API.
3742
run: |
3843
yarn upgrade --exact \
3944
@keep-network/sortition-pools \
40-
@threshold-network/solidity-contracts
45+
@threshold-network/solidity-contracts@1.2.1
4146
4247
# Deploy contracts to a local network to generate deployment artifacts that
4348
# are required by dashboard and client compilation.

0 commit comments

Comments
 (0)