Skip to content

Commit 824adfe

Browse files
committed
fix: unit test
1 parent 4ee513f commit 824adfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/LibInitializeGuard.t.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { SampleProxyForTestingPurpose7 } from "src/mocks/ForTesting/SampleProxyF
2222
import { SampleProxy } from "src/mocks/SampleProxy.sol";
2323

2424
interface ITransparentUpgradeableProxy {
25+
function upgradeTo(address) external;
2526
function upgradeToAndCall(address, bytes memory) external payable;
2627
}
2728

@@ -65,7 +66,7 @@ contract LibInitializeGuardTest is Test {
6566

6667
address newLogic = address(new SampleProxyForTestingPurpose2());
6768
vm.prank(admin);
68-
ITransparentUpgradeableProxy(address(_sample)).upgradeToAndCall(newLogic, "");
69+
ITransparentUpgradeableProxy(address(_sample)).upgradeTo(newLogic);
6970
MockConfig(address(vme)).updateSampleProxyLogicForTesting("SampleProxyForTestingPurpose2");
7071

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

0 commit comments

Comments
 (0)