Skip to content

Commit 9a1f26e

Browse files
committedMar 27, 2024·
Instruction byte length update for the compute budget program
1 parent d9bf1b4 commit 9a1f26e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/Solnet.Programs/ComputeBudgetProgram.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static TransactionInstruction RequestHeapFrame(uint bytes)
4141
{
4242
List<AccountMeta> keys = new();
4343

44-
byte[] instructionBytes = new byte[5];
44+
byte[] instructionBytes = new byte[17];
4545
instructionBytes.WriteU8(1, 0);
4646
instructionBytes.WriteU32(bytes, 1);
4747

@@ -61,7 +61,7 @@ public static TransactionInstruction SetComputeUnitLimit(uint units)
6161
{
6262
List<AccountMeta> keys = new();
6363

64-
byte[] instructionBytes = new byte[5];
64+
byte[] instructionBytes = new byte[9];
6565
instructionBytes.WriteU8(2, 0);
6666
instructionBytes.WriteU64(units, 1);
6767

0 commit comments

Comments
 (0)
Please sign in to comment.