@solana/kit 8.3.0 → 8.3.1-canary-20260918111252

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7576,9 +7576,10 @@ this.globalThis.solanaWeb3 = (function (exports) {
7576
7576
  getInstruction,
7577
7577
  totalSize
7578
7578
  }) {
7579
- const numberOfInstructions = Math.ceil(totalSize / REALLOC_LIMIT);
7580
- const lastInstructionSize = totalSize % REALLOC_LIMIT;
7581
- const instructions = new Array(numberOfInstructions).fill(0).map((_, i) => getInstruction(i === numberOfInstructions - 1 ? lastInstructionSize : REALLOC_LIMIT));
7579
+ const instructions = [];
7580
+ for (let remaining = totalSize; remaining > 0; remaining -= REALLOC_LIMIT) {
7581
+ instructions.push(getInstruction(Math.min(REALLOC_LIMIT, remaining)));
7582
+ }
7582
7583
  return getMessagePackerInstructionPlanFromInstructions(instructions);
7583
7584
  }
7584
7585
  function appendTransactionMessageInstructionPlan(instructionPlan, transactionMessage) {
@@ -10965,7 +10966,7 @@ ${lastLines.map((line) => ` > ${line}
10965
10966
  ...config.headers ? normalizeHeaders2(config.headers) : void 0,
10966
10967
  ...{
10967
10968
  // Keep these headers lowercase so they will override any user-supplied headers above.
10968
- "solana-client": `js/${"8.3.0"}`
10969
+ "solana-client": `js/${"8.3.1-canary-20260918111252"}`
10969
10970
  }
10970
10971
  }
10971
10972
  }),