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):
How did you deploy the contract? The owner is set in the initialize function. If you’re using the OpenZeppelin Upgrades Plugins this is done automatically.
Thank you @frangio Yes, I was following the procedure on that page. However, since I was getting an error (Invalid number of parameters for "initialize") on the following line: