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
The tx.originglobal variable refers to the original external account that started the transaction while msg.sender refers to the immediate account(it could be external or another contract account) that invokes the function. The tx.origin variable will always refer to the external account while msg.sender can be a contract or external account.
If there are multiple function invocations on multiple contracts, tx.origin will always refer to the account that started the transaction irrespective of the stack of contracts invoked
In the tx.origin page it would be helpful to include short background information on what
tx.origin
is and how it differs frommsg.sender
.The text was updated successfully, but these errors were encountered: