Browse Source

Fix ERC2771ContextMock for upgradeable contracts

Francisco Giordano 3 years ago
parent
commit
e9e177f53b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      contracts/mocks/ERC2771ContextMock.sol

+ 1 - 0
contracts/mocks/ERC2771ContextMock.sol

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