I’ve successfully built/compiled/deployed my upgradeable, ownable, EC721 to my local devnet.
However, when I attempt to
send-tx to a function modified as
onlyOwner, it fails with:
Error while trying to send transaction to 0x0E696947A06550DEf604e82C26fd9E493e576337. Error: Returned error: VM Exception while processing transaction: revert Ownable: caller is not the owner
This makes sense, I think, since it was deployed as
upgradeable, and there is now a proxy contract (as I understand it) in place, which is now actually the owner(?).
In order for
onlyOwner and other access control methods to work, do I need to explicitly set the
_msgSender in the initializer, or have I done something else incorrectly?