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
+6
View File
@@ -20,6 +20,12 @@ contract CheckState is DemoScript {
_printEducationalWarning();
bool deployedStage = keccak256(bytes(stage)) == keccak256("deployed");
Manifest memory manifest = _readManifest(manifestPath, !deployedStage);
if (block.chainid == BASE_SEPOLIA_CHAIN_ID) {
address expectedSender = vm.envAddress("BASE_SEPOLIA_SENDER");
(address presenter, address recipient,) = _requireBaseConfig(expectedSender);
_assertAddress("Presenter", manifest.actors[0].address_, presenter);
_assertAddress("Recipient", manifest.actors[1].address_, recipient);
}
BankV1 bank = BankV1(manifest.proxy);
MockUSDC token = MockUSDC(manifest.token);