restore trustedForwarders as an OZ override

This commit is contained in:
hueso
2025-10-24 21:50:21 -03:00
parent f56335d9b5
commit d9b93fe7d5
5 changed files with 58 additions and 7 deletions

View 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];
}
}