File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ import "./IERC2771Context.sol";
99contract ERC2771Context is IERC2771Context , ERC2771ContextInternal {
1010 using ERC2771ContextStorage for ERC2771ContextStorage .Layout;
1111
12+ function trustedForwarder () external view override returns (address ) {
13+ return ERC2771ContextStorage .layout ().trustedForwarder;
14+ }
15+
1216 function isTrustedForwarder (address forwarder ) public view virtual returns (bool ) {
1317 return _isTrustedForwarder (forwarder);
1418 }
Original file line number Diff line number Diff line change 33pragma solidity ^ 0.8.15 ;
44
55interface IERC2771Context {
6+ function trustedForwarder () external view returns (address );
7+
68 function isTrustedForwarder (address forwarder ) external view returns (bool );
79}
You can’t perform that action at this time.
0 commit comments