fix: Remove StakingPoolFactory manual registration and fix OpenZeppelin install
Some checks failed
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 1m14s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 59s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 58s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Successful in 1m1s
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m1s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 13s
Smart Contract Tests / test-foundry (push) Failing after 13s
Smart Contract Tests / lint-solidity (push) Successful in 16s
Smart Contract Tests / deploy-contracts (push) Successful in 1m10s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 1s
Deploy to Testnet / notify-deployment (push) Successful in 1s
Node Failover Simulation / failover-test (push) Successful in 8s
Multi-Node Stress Testing / stress-test (push) Successful in 7s
Cross-Node Transaction Testing / transaction-test (push) Successful in 4s
Some checks failed
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 1m14s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 59s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 58s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Deploy to Testnet / deploy-testnet (push) Successful in 1m1s
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m1s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 13s
Smart Contract Tests / test-foundry (push) Failing after 13s
Smart Contract Tests / lint-solidity (push) Successful in 16s
Smart Contract Tests / deploy-contracts (push) Successful in 1m10s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 1s
Deploy to Testnet / notify-deployment (push) Successful in 1s
Node Failover Simulation / failover-test (push) Successful in 8s
Multi-Node Stress Testing / stress-test (push) Successful in 7s
Cross-Node Transaction Testing / transaction-test (push) Successful in 4s
- Remove manual StakingPoolFactory registration since initialize() registers itself - Use git checkout v4.9.6 after forge install to ensure correct version
This commit is contained in:
@@ -134,9 +134,10 @@ jobs:
|
||||
|
||||
echo "=== Running Foundry Tests ==="
|
||||
|
||||
# Install OpenZeppelin dependencies (v4.x for compatibility with existing imports)
|
||||
forge install OpenZeppelin/openzeppelin-contracts@v4.9.6
|
||||
echo "✅ OpenZeppelin dependencies installed"
|
||||
# Install OpenZeppelin dependencies (v4.9.6 for compatibility with existing imports)
|
||||
forge install OpenZeppelin/openzeppelin-contracts
|
||||
cd lib/openzeppelin-contracts && git checkout v4.9.6 && cd ../..
|
||||
echo "✅ OpenZeppelin dependencies installed (v4.9.6)"
|
||||
|
||||
# Build contracts
|
||||
forge build
|
||||
|
||||
@@ -72,11 +72,7 @@ describe("Phase 4 Modular Smart Contracts", function () {
|
||||
ethers.keccak256(ethers.toUtf8Bytes("RewardDistributor")),
|
||||
await rewardDistributor.getAddress()
|
||||
);
|
||||
// PerformanceAggregator registers itself during initialize()
|
||||
await contractRegistry.registerContract(
|
||||
ethers.keccak256(ethers.toUtf8Bytes("StakingPoolFactory")),
|
||||
await stakingPoolFactory.getAddress()
|
||||
);
|
||||
// StakingPoolFactory and PerformanceAggregator register themselves during initialize()
|
||||
await contractRegistry.registerContract(
|
||||
ethers.keccak256(ethers.toUtf8Bytes("DAOGovernanceEnhanced")),
|
||||
await daoGovernanceEnhanced.getAddress()
|
||||
|
||||
Reference in New Issue
Block a user