Skip to content

Commit

Permalink
Initialize the payload in case no payload is sent
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedHanafy725 committed May 27, 2024
1 parent 85a6fa4 commit 387c334
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/rmb_direct_client/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,8 @@ class Client {
} else {
clientEnvelope.plain = new Uint8Array(Buffer.from(requestData));
}
} else {
clientEnvelope.plain = new Uint8Array();
}

clientEnvelope.relays = this.twin.relay.split("_");
Expand Down

0 comments on commit 387c334

Please sign in to comment.