This repository was archived by the owner on Jul 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -94,11 +94,9 @@ contract SwanUpgradeTest is Test {
9494
9595 assertEq (currentImplementation, address (swanImplementationV2));
9696
97- // Post-upgrade checks to ensure all state is preserved
9897 assertEq (address (proxy.agentFactory ()), address (agentFactory));
9998 assertEq (address (proxy.artifactFactory ()), address (artifactFactory));
10099
101- // Test functionality after upgrade
102100 vm.startPrank (owner);
103101 address newAgentFactory = address (new MockSwanAgentFactory ());
104102 address newArtifactFactory = address (new MockSwanArtifactFactory ());
@@ -118,7 +116,7 @@ contract SwanUpgradeTest is Test {
118116
119117 // Try to upgrade from a non-owner account
120118 vm.startPrank (user);
121- vm.expectRevert (); // Should revert due to onlyOwner
119+ vm.expectRevert ();
122120 proxy.upgradeToAndCall (address (swanImplementationV2), "" );
123121 vm.stopPrank ();
124122 }
Original file line number Diff line number Diff line change @@ -3,6 +3,4 @@ pragma solidity ^0.8.20;
33
44import {LLMOracleCoordinator} from "@firstbatch/dria-oracle-contracts/LLMOracleCoordinator.sol " ;
55
6- contract MockLLMOracleCoordinator {
7- // Mock functions as needed
8- }
6+ contract MockLLMOracleCoordinator {}
You can’t perform that action at this time.
0 commit comments