I have a contract(A) function with the standard onlyOwner access. If I call directly from the deployed account the function works fine. But when I import this contract(A) into another contract(B) and I call that function with the onlyOwner modifier. Report me the error.
It´s seems that the msg.sender that arrive to the modifier contract(A) is the the deployed address of the contract(B) and not the default account selected and deployed from Remix.
My doubt is how can I wrapp the msg.sender to take that that I select in Remix??
This is my idea, but any other idea is wellcome.
Thx
onlyOwner
oronlyContractB
?