I'm using Hardhat as my development framework, but there are a few beginner questions that I have about interacting with a deployed contract that I couldn't quite find in the hardhat docs (or if this involves Infura?).
Can you control the owner address of the contract when deploying? How do you go about setting that? The address you want to use as the owner must be available on the network your deploying to? What about local development on the hardhat network?
I've seen the docs about calling contract functions after you deploy using the hardhat console (instantiating a factory, await calls to a function, etc.), is this the "standard" way to call contract functions such as administrative
onlyOwner
functions likewithdraw()
orpause()
, etc.? Is this approach acceptable formainnet
?