Skip to content

Commit 8e4758a

Browse files
committed
use hex
1 parent 4c2e913 commit 8e4758a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lazer/js/src/publish.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ client.addMessageListener(async (message) => {
7979
console.log("rawData:", rawData);
8080

8181
// Decode the base64 encoded data
82-
const instructionMessage = Buffer.from(rawData!, "base64");
82+
const instructionMessage = Buffer.from(rawData!, "hex");
8383
console.log("instructionMessage:", instructionMessage);
8484

8585
// Create the ed25519 instruction
@@ -170,6 +170,6 @@ client.ws.addEventListener("open", () => {
170170
chains: ["solana"],
171171
deliveryFormat: "json",
172172
channel: "real_time",
173-
jsonBinaryEncoding: "base64",
173+
jsonBinaryEncoding: "hex",
174174
});
175175
});

0 commit comments

Comments
 (0)