Skip to content

Commit

Permalink
Fix ERC2771ContextMock for upgradeable contracts
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Dec 28, 2021
1 parent fe38eae commit e9e177f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/mocks/ERC2771ContextMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e9e177f

Please sign in to comment.