Skip to content

Commit

Permalink
add comment for why FDG is splitted in Blueprint version (#13720)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored Jan 12, 2025
1 parent 3f4d94a commit 2fb8c66
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,8 @@ contract DeployImplementations is Script {
require(checkAddress == address(0), "OPCM-50");
(blueprints.anchorStateRegistry, checkAddress) = Blueprint.create(vm.getCode("AnchorStateRegistry"), salt);
require(checkAddress == address(0), "OPCM-60");
// The max initcode/runtimecode size is 48KB/24KB.
// But for Blueprint, the initcode is stored as runtime code, that's why it's necessary to split into 2 parts.
(blueprints.permissionedDisputeGame1, blueprints.permissionedDisputeGame2) = Blueprint.create(vm.getCode("PermissionedDisputeGame"), salt);
(blueprints.permissionlessDisputeGame1, blueprints.permissionlessDisputeGame2) = Blueprint.create(vm.getCode("FaultDisputeGame"), salt);
vm.stopBroadcast();
Expand Down

0 comments on commit 2fb8c66

Please sign in to comment.