From 683a8d85ac04313d35e3465c1683b89c84b121ed Mon Sep 17 00:00:00 2001 From: aitbc Date: Sat, 2 May 2026 15:25:06 +0200 Subject: [PATCH] fix: remove duplicate registration of DAOGovernanceEnhanced in test setup --- contracts/test/Phase4ModularContracts.test.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/contracts/test/Phase4ModularContracts.test.js b/contracts/test/Phase4ModularContracts.test.js index 09ebfdd2..5814e03d 100644 --- a/contracts/test/Phase4ModularContracts.test.js +++ b/contracts/test/Phase4ModularContracts.test.js @@ -72,11 +72,7 @@ describe("Phase 4 Modular Smart Contracts", function () { ethers.keccak256(ethers.toUtf8Bytes("RewardDistributor")), await rewardDistributor.getAddress() ); - // StakingPoolFactory and PerformanceAggregator register themselves during initialize() - await contractRegistry.registerContract( - ethers.keccak256(ethers.toUtf8Bytes("DAOGovernanceEnhanced")), - await daoGovernanceEnhanced.getAddress() - ); + // StakingPoolFactory, PerformanceAggregator, and DAOGovernanceEnhanced register themselves during initialize() // PerformanceAggregator registers itself during initialize(), so don't register it here // Register mock contracts that PerformanceAggregator.initialize() requires