(op: UserOperation, entryPoint: string, chainId: number)
| 140 | } |
| 141 | |
| 142 | export function getUserOpHash (op: UserOperation, entryPoint: string, chainId: number): string { |
| 143 | const packed = encodeUserOp(op, true) |
| 144 | return keccak256(hexConcat([ |
| 145 | '0x1901', |
| 146 | getDomainSeparator(entryPoint, chainId), |
| 147 | keccak256(packed) |
| 148 | ])) |
| 149 | } |
| 150 | |
| 151 | export function updateUserOpForEip7702Hash (op: UserOperation, delegate: string): UserOperation { |
| 152 | if (!(op.isEip7702 ?? false)) { |