Circular reference meaning contracts know each other addresses. So instead of

deploy foo
deploy bar(foo.address)

Use some clever tricks to have only 2 deploy steps without an additional call to init

  • There you go. Oct 5, 2020 at 7:06
  • @goodvibration so how can both contracts know each other addresses in your solution?
    – Poma
    Oct 5, 2020 at 7:09
  • Using you account address and nonce, you can safely compute the address of the next contract that you deploy with this account. Oct 5, 2020 at 7:13


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.