We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ecc439 commit de18884Copy full SHA for de18884
packages/contracts-bedrock/test/L1/OPContractsManager.t.sol
@@ -1063,10 +1063,13 @@ contract OPContractsManager_UpdatePrestate_Test is OPContractsManager_TestInit {
1063
1064
// make the call to cache the proxy admin owner before the revert check
1065
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
+ }
1070
if (_revertBytes.length > 0) {
1071
vm.expectRevert(_revertBytes);
1072
}
-
1073
// Trigger the updatePrestate function.
1074
vm.prank(proxyAdminOwner, true);
1075
(bool success,) =
0 commit comments