fix typo in eip: remove aggregator from validateUserOp (#227)

This commit is contained in:
Derek Chiang
2023-02-23 02:18:40 -08:00
committed by GitHub
parent f3b5f79551
commit 7368f3d1df

View File

@@ -116,7 +116,7 @@ The core interface required for an account to have is:
```solidity
interface IAccount {
function validateUserOp
(UserOperation calldata userOp, bytes32 userOpHash, address aggregator, uint256 missingAccountFunds)
(UserOperation calldata userOp, bytes32 userOpHash, uint256 missingAccountFunds)
external returns (uint256 validationData);
}
```
@@ -128,10 +128,8 @@ The `userOpHash` is a hash over the userOp (except signature), entryPoint and ch
SHOULD return SIG_VALIDATION_FAILED (and not revert) on signature mismatch. Any other error should revert.
* MUST pay the entryPoint (caller) at least the "missingAccountFunds" (which might be zero, in case current account's deposit is high enough)
* The account MAY pay more than this minimum, to cover future transactions (it can always issue `withdrawTo` to retrieve it)
* The `aggregator` SHOULD be ignored for accounts that don't use an aggregator
* The return value MUST be packed of `authorizer`, `validUntil` and `validAfter` timestamps.
* authorizer - 0 for valid signature, 1 to mark signature failure,
* otherwise, an address of an authorizer contract. This ERC defines "signature aggregator" as authorizer.
* authorizer - 0 for valid signature, 1 to mark signature failure. Otherwise, an address of an authorizer contract. This ERC defines "signature aggregator" as authorizer.
* `validUntil` is 6-byte timestamp value, or zero for "infinite". The UserOp is valid only up to this time.
* `validAfter` is 6-byte timestamp. The UserOp is valid only after this time.