chore: comment about the bytes magic number
diff --git a/aa-utils.ts b/aa-utils.ts
index 04a8be3..9ad3935 100644
--- a/aa-utils.ts
+++ b/aa-utils.ts
@@ -68,7 +68,7 @@ export function packUserOp(op: NotPromise<UserOperationStruct>): string {
let packedUserOp = hexDataSlice(
hexlify(packedUserOpWithDummyPNDAndSignature),
0,
- packedUserOpWithDummyPNDAndSignature.length / 2 - 321 // 321 - is the number of bytes paymasterAndData and signature combined
+ packedUserOpWithDummyPNDAndSignature.length / 2 - 321 // 321 - is the number of bytes paymasterAndData and signature combined (along with their lengths)
);
return packedUserOp;
GitHub
sha: e1bec91e3e5d606d6be308cac6b1bccf18dd690a