Cyclic dependency among two of the contracts; Is there a way to deploy not using _getter and _setter functions?

Modified on Fri, 23 Dec 2022 at 06:47 AM

Cyclic dependency among two of the contracts with the constructor element as the address of the corresponding contract, and this has to be done at the time of deployment only not using _getter and _setter functions. Is there any way to do that?

Actually there might be a way to precompute the contract address before deploying it. Check out this video in which they demonstrate how it's done Basically, you can repeat the process on both contracts and then you can use their precomputed addresses to perform the cyclic dependency.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article