restore trustedForwarders as an OZ override
This commit is contained in:
14
contracts/lib/metatx/ERC2771Context.sol
Normal file
14
contracts/lib/metatx/ERC2771Context.sol
Normal file
@@ -0,0 +1,14 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
pragma solidity ^0.8.20;
|
||||
|
||||
import { ERC2771Context } from "@openzeppelin/contracts/metatx/ERC2771Context.sol";
|
||||
|
||||
abstract contract ERC2771 is ERC2771Context(address(0)) {
|
||||
mapping(address => bool) public trustedForwarders;
|
||||
|
||||
function isTrustedForwarder(address forwarder) public view override returns (bool) {
|
||||
return trustedForwarders[forwarder];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user