And — is there any way to discern if a contract invocation is being invoked via delegatecall? Relatedly, would checking that sender == address(this) be sufficient to determine invocation is via callcode?
Jan 26, 2021, 4:57 PM
^ hacky idea for delegatecall check would be to store some flag at keccak(INTERNAL_CONSTANT) but seems that it could be forged by invoking contract
Jan 26, 2021, 5:01 PM