Solidity Code Reorder Hard +35 XP
Contract Deployment Order
Arrange a proxy pattern deployment.
Click lines in the correct order
Available lines4 left
Your order
Click lines above to build your solution.
Show answer and explanation
Answer: Implementation implementation = new Implementation();
Proxy proxy = new Proxy();
implementation.initialize();
proxy.upgradeTo(address(implementation));
Deploy implementation, deploy proxy, initialize implementation, then point proxy to implementation.
Hint: Deploy both contracts before linking them.
What this challenge tests
Code Reorder in Solidity: proxy-pattern, upgradeable.