Skip to content

Commit

Permalink
fix: unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
huyhuynh3103 committed Oct 10, 2024
1 parent 4ee513f commit 824adfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/LibInitializeGuard.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { SampleProxyForTestingPurpose7 } from "src/mocks/ForTesting/SampleProxyF
import { SampleProxy } from "src/mocks/SampleProxy.sol";

interface ITransparentUpgradeableProxy {
function upgradeTo(address) external;
function upgradeToAndCall(address, bytes memory) external payable;
}

Expand Down Expand Up @@ -65,7 +66,7 @@ contract LibInitializeGuardTest is Test {

address newLogic = address(new SampleProxyForTestingPurpose2());
vm.prank(admin);
ITransparentUpgradeableProxy(address(_sample)).upgradeToAndCall(newLogic, "");
ITransparentUpgradeableProxy(address(_sample)).upgradeTo(newLogic);
MockConfig(address(vme)).updateSampleProxyLogicForTesting("SampleProxyForTestingPurpose2");

Vm.Log[] memory logs = vm.getRecordedLogs();
Expand Down

0 comments on commit 824adfe

Please sign in to comment.