new to forum so if this question belongs elsewhere please let me know.
I'm new to solidity and trying to wrap my head around access control between contracts (if this is even possible).
Say I have a mint function in MyToken contract. I would like a Farm contract as well as a Reward contract to be able to mint MyTokens.
How would I go about setting up access control between these contracts? I understand how roles can work in a singular contract, but I'm unsure on how roles can be set up in the other contracts. Would I just use my admin to grant a role (Minter) to the other contracts address? If one of these was a UUPS proxy, do I grant the role to the proxy address?
Thanks for any help