From 88e1e749699fb807341c882fbbb268798f7337cd Mon Sep 17 00:00:00 2001 From: pcw109550 Date: Wed, 19 Jun 2024 10:50:02 -0600 Subject: [PATCH] scripts: Stage 1.4: Use config absolutePrestate when non devnet --- rvsol/scripts/Deploy_Stage_1_4.sol | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rvsol/scripts/Deploy_Stage_1_4.sol b/rvsol/scripts/Deploy_Stage_1_4.sol index a4adb13..f764e20 100644 --- a/rvsol/scripts/Deploy_Stage_1_4.sol +++ b/rvsol/scripts/Deploy_Stage_1_4.sol @@ -231,8 +231,10 @@ contract Deploy is Deployer { vm.toString(Claim.unwrap(riscvAbsolutePrestate_)) ); } else { - revert("Currently Asterisc only supports local devnet"); - // TODO: Add Asterisc absolute prestate into OP stack deploy config + console.log( + "[Asterisc Dispute Game] Using absolute prestate from config: %x", cfg.faultGameAbsolutePrestate() + ); + riscvAbsolutePrestate_ = Claim.wrap(bytes32(cfg.faultGameAbsolutePrestate())); } }