-
Notifications
You must be signed in to change notification settings - Fork 130
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
Conversation
This reverts commit 6389b4a.
…ne compiler would generate This will enable source code verification of the deployed token bridge contracts on the child chain
* - 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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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
token-bridge-contracts/contracts/tokenbridge/ethereum/L1AtomicTokenBridgeCreator.sol
Lines 612 to 618 in 9907fa2
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
out of date |
No description provided.