Checking for contracts in Constantinople - EVM - Ethereum Research Ethereum Research Checking for contracts in Constantinople EVM MoonMissionControl July 10, 2018, 12:01am 1 Right now, in solidity, there are two ways to check for a contract, via extcodesize or by checking if tx.origin == msg.sender. tx.origin is going to be deprecated. extcodesize does not work for contracts calling via their constructor. This should be fixed. A clear way should be presented to check if an address is a contract OR an user, especially when “user wallets” will have actual code in them in the future. enderphan94 November 28, 2019, 10:31am 2 Same concern, have you found the solution? Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled