Introduces an ONLY_CONTRACT macro that reverts when tx.origin == msg.sender.
Warning
This is a naive check that the sender is a contract address and is generally seen as an anti-pattern.
Additionally, this breaks contract interoperability and breaks once account abstraction is implemented.
Overview
Introduces an
ONLY_CONTRACT
macro that reverts whentx.origin == msg.sender
.