Skip to content

Commit

Permalink
Send message using automatic path finding (#67)
Browse files Browse the repository at this point in the history
* Send message using automatic path finding

* add yarn pack

---------

Co-authored-by: Michał Jadach <[email protected]>
  • Loading branch information
mjadach-iv and Michał Jadach authored Jun 20, 2023
1 parent 8dc0eba commit 152c3fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hoprnet/hopr-sdk",
"version": "0.0.1-alpha.9",
"version": "0.0.1-alpha.10",
"description": "A SDK for HOPRd's Rest API functions",
"author": "HOPR Association",
"license": "GPL-3.0",
Expand Down Expand Up @@ -31,6 +31,7 @@
},
"scripts": {
"build": "tsup",
"pack": "tsup && yarn pack",
"lint": "tsc",
"format": "prettier --check \"src/**/*.{ts,md}\"",
"test": "jest",
Expand Down
3 changes: 0 additions & 3 deletions src/api/messages/sendMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ import { ZodError } from 'zod';
export const sendMessage = async (
payload: SendMessagePayloadType
): Promise<string> => {
if (!payload.path && !payload.hops)
throw new Error('No path or number of hops provided.');

const body: RemoveBasicAuthenticationPayloadType<SendMessagePayloadType> = {
body: payload.body,
recipient: payload.recipient,
Expand Down

0 comments on commit 152c3fc

Please sign in to comment.