We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad5c1fe commit b5e81f3Copy full SHA for b5e81f3
lazer/sdk/js/src/ed25519.ts
@@ -1,6 +1,7 @@
1
import * as BufferLayout from "@solana/buffer-layout";
2
import { Ed25519Program, TransactionInstruction } from "@solana/web3.js";
3
4
+const ED25519_INSTRUCTION_LEN = 16;
5
const SIGNATURE_LEN = 64;
6
const PUBKEY_LEN = 32;
7
const MAGIC_LEN = 4;
@@ -50,7 +51,7 @@ export const createEd25519Instruction = (
50
51
messageDataSizeOffset - startingOffset
52
);
53
- const instructionData = Buffer.alloc(16);
54
+ const instructionData = Buffer.alloc(ED25519_INSTRUCTION_LEN);
55
56
ED25519_INSTRUCTION_LAYOUT.encode(
57
{
0 commit comments