fix: Fix remaining smart contract test failures
Some checks failed
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 59s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 58s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 58s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 1s
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
Cross-Node Transaction Testing / transaction-test (push) Successful in 9s
Deploy to Testnet / deploy-testnet (push) Successful in 59s
Multi-Node Stress Testing / stress-test (push) Successful in 1s
Node Failover Simulation / failover-test (push) Successful in 2s
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m4s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 11s
Smart Contract Tests / test-foundry (push) Failing after 7s
Smart Contract Tests / lint-solidity (push) Successful in 13s
Smart Contract Tests / deploy-contracts (push) Failing after 1m9s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 2s
Deploy to Testnet / notify-deployment (push) Successful in 1s
Some checks failed
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 59s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 58s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 58s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 1s
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
Cross-Node Transaction Testing / transaction-test (push) Successful in 9s
Deploy to Testnet / deploy-testnet (push) Successful in 59s
Multi-Node Stress Testing / stress-test (push) Successful in 1s
Node Failover Simulation / failover-test (push) Successful in 2s
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m4s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 11s
Smart Contract Tests / test-foundry (push) Failing after 7s
Smart Contract Tests / lint-solidity (push) Successful in 13s
Smart Contract Tests / deploy-contracts (push) Failing after 1m9s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 2s
Deploy to Testnet / notify-deployment (push) Successful in 1s
- Remove manual PerformanceAggregator registration since it registers itself during initialize() - Fix foundry.toml optimizer setting - change from map to boolean - Fix TreasuryManager verification - use token() instead of aitbcToken()
This commit is contained in:
@@ -3,10 +3,8 @@ src = "contracts"
|
||||
out = "out"
|
||||
libs = ["lib"]
|
||||
test = "test"
|
||||
|
||||
[profile.default.optimizer]
|
||||
enabled = true
|
||||
runs = 200
|
||||
optimizer = true
|
||||
optimizer_runs = 200
|
||||
|
||||
[profile.fuzz]
|
||||
runs = 1000
|
||||
|
||||
@@ -149,7 +149,7 @@ async function verifyContract(name, address) {
|
||||
const owner = await contract.owner();
|
||||
console.log(` Owner: ${owner}`);
|
||||
} else if (name === "TreasuryManager") {
|
||||
const token = await contract.aitbcToken();
|
||||
const token = await contract.token();
|
||||
console.log(` Token: ${token}`);
|
||||
}
|
||||
|
||||
|
||||
@@ -81,10 +81,7 @@ describe("Phase 4 Modular Smart Contracts", function () {
|
||||
ethers.keccak256(ethers.toUtf8Bytes("DAOGovernanceEnhanced")),
|
||||
await daoGovernanceEnhanced.getAddress()
|
||||
);
|
||||
await contractRegistry.registerContract(
|
||||
ethers.keccak256(ethers.toUtf8Bytes("PerformanceAggregator")),
|
||||
await performanceAggregator.getAddress()
|
||||
);
|
||||
// PerformanceAggregator registers itself during initialize(), so don't register it here
|
||||
|
||||
// Initialize all contracts (after registration)
|
||||
await treasuryManager.initialize(await contractRegistry.getAddress());
|
||||
|
||||
Reference in New Issue
Block a user