@@ -7,7 +7,7 @@ import {EnumerableSet} from "@openzeppelin/contracts/utils/structs/EnumerableSet
77
88import {IExecutionHookModule} from "../interfaces/IExecutionHookModule.sol " ;
99import {Call, IModularAccount} from "../interfaces/IModularAccount.sol " ;
10- import {IModule, ModuleMetadata } from "../interfaces/IModule.sol " ;
10+ import {IModule} from "../interfaces/IModule.sol " ;
1111import {IValidationHookModule} from "../interfaces/IValidationHookModule.sol " ;
1212import {BaseModule, IERC165 } from "./BaseModule.sol " ;
1313
@@ -21,10 +21,6 @@ contract NativeTokenLimitModule is BaseModule, IExecutionHookModule, IValidation
2121 using UserOperationLib for PackedUserOperation;
2222 using EnumerableSet for EnumerableSet.Bytes32Set;
2323
24- string internal constant _NAME = "Native Token Limit " ;
25- string internal constant _VERSION = "1.0.0 " ;
26- string internal constant _AUTHOR = "ERC-6900 Authors " ;
27-
2824 mapping (uint256 funcIds = > mapping (address account = > uint256 limit )) public limits;
2925 // Accounts should add paymasters that still use the accounts tokens here
3026 // E.g. ERC20 paymasters that pull funds from the account
@@ -119,16 +115,8 @@ contract NativeTokenLimitModule is BaseModule, IExecutionHookModule, IValidation
119115 function preSignatureValidationHook (uint32 , address , bytes32 , bytes calldata ) external pure override {}
120116
121117 /// @inheritdoc IModule
122- function moduleMetadata () external pure virtual override returns (ModuleMetadata memory ) {
123- ModuleMetadata memory metadata;
124- metadata.name = _NAME;
125- metadata.version = _VERSION;
126- metadata.author = _AUTHOR;
127-
128- metadata.permissionRequest = new string [](2 );
129- metadata.permissionRequest[0 ] = "native-token-limit " ;
130- metadata.permissionRequest[1 ] = "gas-limit " ;
131- return metadata;
118+ function moduleId () external pure returns (string memory ) {
119+ return "erc6900/native-token-limit-module/1.0.0 " ;
132120 }
133121
134122 // ┏━━━━━━━━━━━━━━━┓
0 commit comments