You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it's not possible to set the msg.sender while calling contract functions with the ethereum.SmartContract class. This is a feature supported in web3.js for example, which allows to set the msg.sender for contract calls and transactions with the from field of the options object.
This is already useful in some cases for view functions, if the view function has modifiers that only allow certain addresses to access them, but will probably also be really useful if transactions could be sent from subgraphs in the future.