I have 2 contracts that deployed with truffle. Now I extended it and my contracts require some bootstrap actions like "set some address" or "set in contract1 address of contract2".
I will not change contracts to make it dependable or mention one contract inside another. I want just to call function contract1.setX(address_of_contract2)
and contract2.setY(address_of_contract1)
.
How it could be done using truffle migration engine (not manually)?