Function packUserOp

  • pack the userOperation

    Parameters

    • op: Partial<UserOperationStruct>
    • forSignature: boolean = true

      "true" if the hash is needed to calculate the getUserOpHash() "false" to pack entire UserOp, for calculating the calldata cost of putting it on-chain.

    Returns string