According to the following comment found at this link, I should be able to call the “Withdraw” function and the “Pause” function of my contract (which uses the openzeppelin upgradeablecontracts modules) if I use the account that was used to deploy the contract.
The account that deploys the contract will be granted the minter and pauser
roles, as well as the default admin role, which will let it grant both minter
and pauser roles to other accounts.
However, if I call these functions using that same account, I am receiving the following error:
“revert Ownable: caller is not the owner”
In my migrations directory of my Smart Contract, I have the following files (using Truffle):
Am I not understanding something or am I missing something?
Thank you. J