From d6bffbcb43b9fa09bd6cfdb86bbeea1b993373e0 Mon Sep 17 00:00:00 2001 From: Domen Grabec Date: Tue, 7 Jan 2025 21:20:39 +0100 Subject: [PATCH] add correct validator ids --- contracts/deploy/sonic/001_origin_sonic.js | 3 +-- contracts/test/behaviour/sfcStakingStrategy.js | 3 +-- contracts/test/strategies/sonicStaking.sonic.fork-test.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/contracts/deploy/sonic/001_origin_sonic.js b/contracts/deploy/sonic/001_origin_sonic.js index 7404ecb915..7a3a3be176 100644 --- a/contracts/deploy/sonic/001_origin_sonic.js +++ b/contracts/deploy/sonic/001_origin_sonic.js @@ -164,8 +164,7 @@ module.exports = deployOnSonic( ); // verify validators here: https://explorer.soniclabs.com/staking - // TODO: change to actual validators we want to use on the sonic mainnet - for (const validatorId of [14, 16]) { + for (const validatorId of [15, 16, 17, 18]) { await cSonicStakingStrategy .connect(sDeployer) .supportValidator(validatorId) diff --git a/contracts/test/behaviour/sfcStakingStrategy.js b/contracts/test/behaviour/sfcStakingStrategy.js index 24df6fcbe8..ef3743d963 100644 --- a/contracts/test/behaviour/sfcStakingStrategy.js +++ b/contracts/test/behaviour/sfcStakingStrategy.js @@ -35,9 +35,8 @@ const shouldBehaveLikeASFCStakingStrategy = (context) => { "Incorrect SFC address set" ); - // TODO: change once the official supported validators change expect(await sonicStakingStrategy.supportedValidatorsLength()).to.equal( - 2, + 4, "Incorrect Supported validators length" ); diff --git a/contracts/test/strategies/sonicStaking.sonic.fork-test.js b/contracts/test/strategies/sonicStaking.sonic.fork-test.js index 1f73218b7d..2345107cc0 100644 --- a/contracts/test/strategies/sonicStaking.sonic.fork-test.js +++ b/contracts/test/strategies/sonicStaking.sonic.fork-test.js @@ -19,7 +19,7 @@ describe("Sonic ForkTest: Sonic Staking Strategy", function () { addresses.sonic.SFC ), // see validators here: https://explorer.soniclabs.com/staking - testValidatorIds: [14, 16], + testValidatorIds: [15, 16, 17, 18], }; }); });