feat: add guarded Base Sepolia encore

This commit is contained in:
golem
2026-08-21 16:01:35 -06:00
parent 94f2ad6e09
commit 90b0a11b8a
16 changed files with 784 additions and 25 deletions
+8
View File
@@ -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);