Does This Work on Rollup Chains (Optimism, Arbitrum)? #2
-
Pardon me for opening an issue for a simple question (may be worth it to enable discussions on this repo?) I'm currently using the deterministic-deployment-proxy to deploy contracts deterministic addresses across chains. One of the issues with that it can't be used on Arbitrum and Optimism.. Is xdeployer able to deploy to rollup chains as well? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@PaulRBerg good point: I enabled discussions here. Regarding your question: yes For testing purposes, I just deployed a mock Also (just for testing) I also transferred the tokens and it worked smoothly: However, you must increase the |
Beta Was this translation helpful? Give feedback.
-
Note that you can convert this issue to a discussion. There's a button on the right-hand side of the screen.
Yes, we have to do that because of the way the rollup chain txs are batched. That was actually my fear, that bumping the gas limit would break xdeployer. |
Beta Was this translation helpful? Give feedback.
-
Hi @pcaversacci, the proxy Paul linked is actually just to deploy the create2 contract itself and he stated the gasLimit is influencing the deployment address. So to ask the question differently - How did you deploy the create2 contract itself? |
Beta Was this translation helpful? Give feedback.
@PaulRBerg good point: I enabled discussions here.
Regarding your question: yes
xdeployer
is able to deploy on rollup chains. Currently, however, only the testnets are supported (I will add later the prod networks):optimismtestnet
arbitrumtestnet
For testing purposes, I just deployed a mock
ERC20
including constructors on both rollup chains:optimismtestnet
:MyToken
arbitrumtestnet
:MyToken
Also (just for testing) I also transferred the tokens and it worked smoothly:
However, you must increase the
gasLimit
significantly to deploy on Arbitrum as it seems. Also, in case interested check here for the standard Arbitrum ERC-20 interface.