How can I set the trustedforwarder address in ERC2771ContextUpgradable contract?
Code to reproduce
contract Wallet is Initializable, ERC2771ContextUpgradeable, UUPSUpgradeable {
function initialize(address _operator, address _trustedForwarder)
public
initializer
{
OPERATOR = _operator;
trustedForwarder = _trustedForwarder;
}
function _msgSender() internal view override(ERC2771ContextUpgradeable) returns (address sender) {
sender = ERC2771ContextUpgradeable._msgSender();
}
function _msgData() internal view virtual override(ERC2771ContextUpgradeable) returns (bytes calldata) {
return ERC2771ContextUpgradeable._msgData();
}
}