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
First of all, isContract checks the code size for any address, not just the caller.
With that out of the way, there are multiple reasons why tx.origin is usually a bad idea, at least security-wise: see here an issue where removing it from Solidity was proposed, and here a suggestion from Vitalik to 'not assume that tx.origin will continue to be usable or meaningful'.
https://github.com/OpenZeppelin/openzeppelin-solidity/blob/master/contracts/AddressUtils.sol
The text was updated successfully, but these errors were encountered: