From 25f64f7799e9a777b1ab7027551c588797f118e9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20Ros=C5=82aniec?=
Date: Sun, 24 May 2026 06:32:18 +0000
Subject: [PATCH] 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.
---
.github/workflows/npm-random-beacon.yml | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/npm-random-beacon.yml b/.github/workflows/npm-random-beacon.yml
index 88776fae45..52520c966a 100644
--- a/.github/workflows/npm-random-beacon.yml
+++ b/.github/workflows/npm-random-beacon.yml
@@ -34,10 +34,17 @@ jobs:
cache-dependency-path: solidity/random-beacon/yarn.lock
- name: Resolve latest contracts
+ # `@threshold-network/solidity-contracts` is pinned to 1.3.0-dev.11
+ # (the version used by the last successful publish, 2.1.0-dev.18)
+ # because the `development` dist-tag was bumped to 1.3.0-dev.16,
+ # which refactored `TokenStaking` and removed `approveApplication`
+ # (called by `deploy/05_approve_random_beacon_in_token_staking.ts`).
+ # Unpin once the deploy scripts and Go ABI bindings are migrated
+ # to the new TokenStaking API.
run: |
yarn upgrade --exact \
@keep-network/sortition-pools \
- @threshold-network/solidity-contracts
+ @threshold-network/solidity-contracts@1.3.0-dev.11
# Deploy contracts to a local network to generate deployment artifacts that
# are required by dashboard and client compilation.