I would like to use the OpenZeppelin’s Clones library to cheaply deploy contracts that are also compatible with meta-transactions via ERC2771.
ERC2771Context.sol contract sets the immutable address
trustedForwarder in the constructor.
Clones do not use constructors to initialize state variables; they use a separate function to do so. With this pattern, it seems impossible to set the
trustedForwarder, which is necessary for the contract to receive meta-tx.
Am I correct in my assessment? Is there a way around this to deploy clones that are compatible with meta-tx?