Skip to content

Commit b5e81f3

Browse files
committed
fix
1 parent ad5c1fe commit b5e81f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lazer/sdk/js/src/ed25519.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import * as BufferLayout from "@solana/buffer-layout";
22
import { Ed25519Program, TransactionInstruction } from "@solana/web3.js";
33

4+
const ED25519_INSTRUCTION_LEN = 16;
45
const SIGNATURE_LEN = 64;
56
const PUBKEY_LEN = 32;
67
const MAGIC_LEN = 4;
@@ -50,7 +51,7 @@ export const createEd25519Instruction = (
5051
messageDataSizeOffset - startingOffset
5152
);
5253

53-
const instructionData = Buffer.alloc(16);
54+
const instructionData = Buffer.alloc(ED25519_INSTRUCTION_LEN);
5455

5556
ED25519_INSTRUCTION_LAYOUT.encode(
5657
{

0 commit comments

Comments
 (0)