test owner upgradable (#1207)
This commit is contained in:
parent
1778871b8b
commit
220e06a62d
|
@ -91,6 +91,15 @@ contract ExecutorTest is Test, WormholeTestUtils {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function testExecutorOwner() public {
|
||||||
|
assertEq(address(executor), executor.owner());
|
||||||
|
}
|
||||||
|
|
||||||
|
function testExternaUpgradeCallFails() public {
|
||||||
|
vm.expectRevert("Ownable: caller is not the owner");
|
||||||
|
executor.upgradeTo(address(executor2));
|
||||||
|
}
|
||||||
|
|
||||||
function testUpgradeCallSucceedsForContractWithCorrectMagic() public {
|
function testUpgradeCallSucceedsForContractWithCorrectMagic() public {
|
||||||
bytes memory vaa = getTestUpgradeVaa(address(executor2));
|
bytes memory vaa = getTestUpgradeVaa(address(executor2));
|
||||||
executor.execute(vaa);
|
executor.execute(vaa);
|
||||||
|
|
Loading…
Reference in New Issue