feat: add guarded Base Sepolia encore
This commit is contained in:
@@ -37,7 +37,15 @@ contract UpgradeV2 is DemoScript {
|
||||
internal
|
||||
returns (bool upgraded, address implementation)
|
||||
{
|
||||
address configuredRecipient;
|
||||
if (block.chainid == BASE_SEPOLIA_CHAIN_ID) {
|
||||
(, configuredRecipient,) = _requireBaseConfig(sender);
|
||||
}
|
||||
Manifest memory manifest = _readManifest(activePath, true);
|
||||
if (block.chainid == BASE_SEPOLIA_CHAIN_ID) {
|
||||
_assertAddress("Presenter", manifest.actors[0].address_, sender);
|
||||
_assertAddress("Recipient", manifest.actors[1].address_, configuredRecipient);
|
||||
}
|
||||
BankV1 bank = BankV1(manifest.proxy);
|
||||
|
||||
address actualImplementation = Upgrades.getImplementationAddress(manifest.proxy);
|
||||
|
||||
Reference in New Issue
Block a user