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. – goodvibration Oct 5 '20 at 7:06
  • @goodvibration so how can both contracts know each other addresses in your solution? – Poma Oct 5 '20 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. – goodvibration Oct 5 '20 at 7:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.