Fix ERC2771ContextMock for upgradeable contracts

This commit is contained in:
Francisco Giordano
2021-12-27 21:14:32 -03:00
parent fe38eae6cd
commit e9e177f53b

View File

@ -7,6 +7,7 @@ import "../metatx/ERC2771Context.sol";
// By inheriting from ERC2771Context, Context's internal functions are overridden automatically
contract ERC2771ContextMock is ContextMock, ERC2771Context {
/// @custom:oz-upgrades-unsafe-allow constructor
constructor(address trustedForwarder) ERC2771Context(trustedForwarder) {
emit Sender(_msgSender()); // _msgSender() should be accessible during construction
}