Skip to content

Commit 2fb8c66

Browse files
authored
add comment for why FDG is splitted in Blueprint version (#13720)
1 parent 3f4d94a commit 2fb8c66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/contracts-bedrock/scripts/deploy/DeployImplementations.s.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ contract DeployImplementations is Script {
505505
require(checkAddress == address(0), "OPCM-50");
506506
(blueprints.anchorStateRegistry, checkAddress) = Blueprint.create(vm.getCode("AnchorStateRegistry"), salt);
507507
require(checkAddress == address(0), "OPCM-60");
508+
// The max initcode/runtimecode size is 48KB/24KB.
509+
// But for Blueprint, the initcode is stored as runtime code, that's why it's necessary to split into 2 parts.
508510
(blueprints.permissionedDisputeGame1, blueprints.permissionedDisputeGame2) = Blueprint.create(vm.getCode("PermissionedDisputeGame"), salt);
509511
(blueprints.permissionlessDisputeGame1, blueprints.permissionlessDisputeGame2) = Blueprint.create(vm.getCode("FaultDisputeGame"), salt);
510512
vm.stopBroadcast();

0 commit comments

Comments
 (0)