Closed voltrevo closed 1 year ago
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅
I have read the CLA Document and I hereby sign the CLA
Nevermind. I realize now that the plugin is used via normal calls except for the setup phase, and that means this
refers to the plugin rather than the safe.
I'll leave this open to help prompt a response here which could help others. In particular, is there documentation that covers this point?
Nevermind. I realize now that the plugin is used via normal calls except for the setup phase, and that means
this
refers to the plugin rather than the safe.I'll leave this open to help prompt a response here which could help others. In particular, is there documentation that covers this point?
I'm afraid we don't have any documentation covering this at the moment, but we're actively working on improving this. I'll close the PR in the meantime (it should still be accessible even if it's closed)
msg.sender
refers to the safe only because of the way safe's module system works via an internal call. (Related to how_msgSender()
is needed to get the 'real' msg sender.)To my knowledge,
address(this)
should be equivalent. If so, it should be preferred because it is much more clear.