Co-authored-by: Arthur Abeilice <afa7789@gmail.com> Reviewed-on: https://git.p2pix.co/doiim/p2pix-smart-contracts/pulls/11 Co-authored-by: arthur <abeilice@kosmos.org> Co-committed-by: arthur <abeilice@kosmos.org>
16 lines
414 B
Solidity
16 lines
414 B
Solidity
// 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];
|
|
}
|
|
}
|