Skip to content

Commit de18884

Browse files
committed
Empty eoa fix
1 parent 1ecc439 commit de18884

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/contracts-bedrock/test/L1/OPContractsManager.t.sol

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,10 +1063,13 @@ contract OPContractsManager_UpdatePrestate_Test is OPContractsManager_TestInit {
10631063

10641064
// make the call to cache the proxy admin owner before the revert check
10651065
address proxyAdminOwner = chainDeployOutput1.opChainProxyAdmin.owner();
1066+
if (proxyAdminOwner.code.length > 0) {
1067+
// Foundry fails with "cannot `prank` delegate call from an EOA" if empty
1068+
vm.etch(proxyAdminOwner, hex"00");
1069+
}
10661070
if (_revertBytes.length > 0) {
10671071
vm.expectRevert(_revertBytes);
10681072
}
1069-
10701073
// Trigger the updatePrestate function.
10711074
vm.prank(proxyAdminOwner, true);
10721075
(bool success,) =

0 commit comments

Comments
 (0)