Skip to content

Commit

Permalink
fix(protocol): make TaikoAnchor named taiko in L2 genesis (#18877)
Browse files Browse the repository at this point in the history
Co-authored-by: Gavin “yoghurt” Yu <[email protected]>
Co-authored-by: YoGhurt111 <[email protected]>
Co-authored-by: Daniel Wang <[email protected]>
  • Loading branch information
4 people authored Feb 5, 2025
1 parent 149ddef commit 589797d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ contract UpgradeDevnetPacayaL2 is DeployCapability {
register(
sharedResolver, "bridged_erc1155", address(new BridgedERC1155(address(sharedResolver)))
);
// Register B_TAIKO
register(sharedResolver, "taiko", taikoAnchor);
// Taiko Anchor
UUPSUpgradeable(taikoAnchor).upgradeTo(
address(new TaikoAnchor(sharedResolver, pacayaForkHeight))
Expand Down
1 change: 1 addition & 0 deletions packages/protocol/test/genesis/GenerateGenesis.g.sol
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ contract TestGenerateGenesis is Test {
checkSavedAddress(resolverProxy, "ERC721Vault", "erc721_vault");
checkSavedAddress(resolverProxy, "ERC1155Vault", "erc1155_vault");
checkSavedAddress(resolverProxy, "SignalService", "signal_service");
checkSavedAddress(resolverProxy, "TaikoAnchor", "taiko");

vm.startPrank(resolverProxy.owner());

Expand Down
3 changes: 3 additions & 0 deletions packages/protocol/test/genesis/generate/taikoAnchor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ async function generateContractConfigs(
[ethers.utils.hexlify(
ethers.utils.toUtf8Bytes("bridged_erc1155"),
)]: addressMap.BridgedERC1155Impl,
[ethers.utils.hexlify(
ethers.utils.toUtf8Bytes("taiko"),
)]: addressMap.TaikoAnchor,
},
},
},
Expand Down

0 comments on commit 589797d

Please sign in to comment.