Skip to content

Commit

Permalink
feat: change name from CreateXDeployer to CreateX
Browse files Browse the repository at this point in the history
  • Loading branch information
agusduha committed Aug 22, 2024
1 parent 3e363ad commit 59450d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/scripts/L2Genesis.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ contract L2Genesis is Deployer {
_setPreinstallCode(Preinstalls.SenderCreator_v070); // ERC 4337 v0.7.0
_setPreinstallCode(Preinstalls.EntryPoint_v070); // ERC 4337 v0.7.0
_setPreinstallCode(Preinstalls.BeaconBlockRoots);
_setPreinstallCode(Preinstalls.CreateXDeployer);
_setPreinstallCode(Preinstalls.CreateX);
// 4788 sender nonce must be incremented, since it's part of later upgrade-transactions.
// For the upgrade-tx to not create a contract that conflicts with an already-existing copy,
// the nonce must be bumped.
Expand Down
8 changes: 4 additions & 4 deletions packages/contracts-bedrock/src/libraries/Preinstalls.sol

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/contracts-bedrock/test/Preinstalls.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ contract PreinstallsTest is CommonTest {
assertEq(vm.getNonce(Preinstalls.BeaconBlockRootsSender), 1, "4788 sender must have nonce=1");
}

function test_preinstall_createXDeployer_succeeds() external view {
assertPreinstall(Preinstalls.CreateXDeployer, Preinstalls.CreateXDeployerCode);
function test_preinstall_createX_succeeds() external view {
assertPreinstall(Preinstalls.CreateX, Preinstalls.CreateXCode);
}
}
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/test/setup/Setup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ contract Setup {
labelPreinstall(Preinstalls.SenderCreator_v070);
labelPreinstall(Preinstalls.EntryPoint_v070);
labelPreinstall(Preinstalls.BeaconBlockRoots);
labelPreinstall(Preinstalls.CreateXDeployer);
labelPreinstall(Preinstalls.CreateX);

console.log("Setup: completed L2 genesis");
}
Expand Down

0 comments on commit 59450d6

Please sign in to comment.