@solana/web3.js 1.91.0 → 1.91.1

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.
package/lib/index.iife.js CHANGED
@@ -12211,23 +12211,19 @@ var solanaWeb3 = (function (exports) {
12211
12211
  const accountCount = decodeLength(byteArray);
12212
12212
  let accountKeys = [];
12213
12213
  for (let i = 0; i < accountCount; i++) {
12214
- const account = byteArray.slice(0, PUBLIC_KEY_LENGTH);
12215
- byteArray = byteArray.slice(PUBLIC_KEY_LENGTH);
12214
+ const account = byteArray.splice(0, PUBLIC_KEY_LENGTH);
12216
12215
  accountKeys.push(new PublicKey(buffer.Buffer.from(account)));
12217
12216
  }
12218
- const recentBlockhash = byteArray.slice(0, PUBLIC_KEY_LENGTH);
12219
- byteArray = byteArray.slice(PUBLIC_KEY_LENGTH);
12217
+ const recentBlockhash = byteArray.splice(0, PUBLIC_KEY_LENGTH);
12220
12218
  const instructionCount = decodeLength(byteArray);
12221
12219
  let instructions = [];
12222
12220
  for (let i = 0; i < instructionCount; i++) {
12223
12221
  const programIdIndex = byteArray.shift();
12224
12222
  const accountCount = decodeLength(byteArray);
12225
- const accounts = byteArray.slice(0, accountCount);
12226
- byteArray = byteArray.slice(accountCount);
12223
+ const accounts = byteArray.splice(0, accountCount);
12227
12224
  const dataLength = decodeLength(byteArray);
12228
- const dataSlice = byteArray.slice(0, dataLength);
12225
+ const dataSlice = byteArray.splice(0, dataLength);
12229
12226
  const data = bs58$1.encode(buffer.Buffer.from(dataSlice));
12230
- byteArray = byteArray.slice(dataLength);
12231
12227
  instructions.push({
12232
12228
  programIdIndex,
12233
12229
  accounts,
@@ -13260,8 +13256,7 @@ var solanaWeb3 = (function (exports) {
13260
13256
  const signatureCount = decodeLength(byteArray);
13261
13257
  let signatures = [];
13262
13258
  for (let i = 0; i < signatureCount; i++) {
13263
- const signature = byteArray.slice(0, SIGNATURE_LENGTH_IN_BYTES);
13264
- byteArray = byteArray.slice(SIGNATURE_LENGTH_IN_BYTES);
13259
+ const signature = byteArray.splice(0, SIGNATURE_LENGTH_IN_BYTES);
13265
13260
  signatures.push(bs58$1.encode(buffer.Buffer.from(signature)));
13266
13261
  }
13267
13262
  return Transaction.populate(Message.from(byteArray), signatures);
@@ -25991,10 +25986,8 @@ var solanaWeb3 = (function (exports) {
25991
25986
  if (configKeyCount !== 2) return null;
25992
25987
  const configKeys = [];
25993
25988
  for (let i = 0; i < 2; i++) {
25994
- const publicKey = new PublicKey(byteArray.slice(0, PUBLIC_KEY_LENGTH));
25995
- byteArray = byteArray.slice(PUBLIC_KEY_LENGTH);
25996
- const isSigner = byteArray.slice(0, 1)[0] === 1;
25997
- byteArray = byteArray.slice(1);
25989
+ const publicKey = new PublicKey(byteArray.splice(0, PUBLIC_KEY_LENGTH));
25990
+ const isSigner = byteArray.splice(0, 1)[0] === 1;
25998
25991
  configKeys.push({
25999
25992
  publicKey,
26000
25993
  isSigner