Skip to content

Commit 220e06a

Browse files
author
Dev Kalra
authored
test owner upgradable (#1207)
1 parent 1778871 commit 220e06a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

target_chains/ethereum/contracts/forge-test/Executor.t.sol

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ contract ExecutorTest is Test, WormholeTestUtils {
9191
);
9292
}
9393

94+
function testExecutorOwner() public {
95+
assertEq(address(executor), executor.owner());
96+
}
97+
98+
function testExternaUpgradeCallFails() public {
99+
vm.expectRevert("Ownable: caller is not the owner");
100+
executor.upgradeTo(address(executor2));
101+
}
102+
94103
function testUpgradeCallSucceedsForContractWithCorrectMagic() public {
95104
bytes memory vaa = getTestUpgradeVaa(address(executor2));
96105
executor.execute(vaa);

0 commit comments

Comments
 (0)