I would like to know if the entrypoint of my smart contract is called from an implicit(tz1) or an originated address(KT1). How can i do the check in smartpy?
Looking at the Smartpy documentation, it's said that the address type sp.TAddress is "An address of a contract or implicit account". Further you can't convert the address to string because Michelson doesn't allow type casting.
Am i missing something? How can i differentiate between the address types?