Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update creation code generation #58

Closed
wants to merge 11 commits into from
Closed

Conversation

gvladika
Copy link
Contributor

No description provided.

@cla-bot cla-bot bot added the cla-signed label Nov 22, 2023
* - 61xxxx - push 2 bytes of `code` length
* - 806100206000396000f3fe - copy deployed code to memory and return the location of it
* @param code Deployed bytecode to which constructor bytecode will be prepended
* @return Creation code of a new contract
*/
function _creationCodeFor(bytes memory code) internal pure returns (bytes memory) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we have this function as a lib function shared by both contracts?

* - 61xxxx - push 2 bytes of `code` length
* - 806100206000396000f3fe - copy deployed code to memory and return the location of it
* @param code Deployed bytecode to which constructor bytecode will be prepended
* @return Creation code of a new contract
*/
function _creationCodeFor(bytes memory code) internal pure returns (bytes memory) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes the returned address of

function getCanonicalL2Multicall(uint256 chainId) public view returns (address) {
return Create2.computeAddress(
_getL2Salt(OrbitSalts.L2_MULTICALL, chainId),
ARB_MULTICALL_CODE_HASH,
canonicalL2FactoryAddress
);
}

we might want to have a way to redeploy the multicall contract even if the rest of the token bridge is already deployed using the old way

@gvladika
Copy link
Contributor Author

gvladika commented Dec 6, 2023

out of date

@gvladika gvladika closed this Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants