Skip to content

Commit

Permalink
Adding comment on getUserOpHash() regarding 7702
Browse files Browse the repository at this point in the history
  • Loading branch information
shahafn committed Mar 3, 2025
1 parent 6e922cf commit cc1b7ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/accounts/Simple7702Account.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ contract Simple7702Account is BaseAccount, IERC165, IERC1271, ERC1155Holder, ERC

// temporary address of entryPoint v0.8
function entryPoint() public pure override returns (IEntryPoint) {
return IEntryPoint(0x0C1AFDED2Ba150E85D1a6b13498CD5B191E767E5);
return IEntryPoint(0xfe2259d1b0d1ec18583902fb5ddf883004b40eC9);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion contracts/core/EntryPoint.sol
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ contract EntryPoint is IEntryPoint, StakeManager, NonceManager, ReentrancyGuardT
address sender = opInfo.mUserOp.sender;
if ( Eip7702Support._isEip7702InitCode(initCode) ) {
if (initCode.length>20 ) {
// Already validated it is an EIP-7702 delegate (and hence, already has code)
// Already validated it is an EIP-7702 delegate (and hence, already has code) - see getUserOpHash()
// Note: Can be called multiple times as long as an appropriate initCode is supplied
senderCreator().initEip7702Sender{
gas: opInfo.mUserOp.verificationGasLimit
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IEntryPoint.sol
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ interface IEntryPoint is IStakeManager, INonceManager {

/**
* Generate a request Id - unique identifier for this request.
* The request ID is a hash over the content of the userOp (except the signature), the entrypoint and the chainid.
* The request ID is a hash over the content of the userOp (except the signature), entrypoint address, chainId and (optionally) 7702 delegate address
* @param userOp - The user operation to generate the request ID for.
* @return hash the hash of this UserOperation
*/
Expand Down

0 comments on commit cc1b7ea

Please sign in to comment.