@solana/web3.js 1.67.0 → 1.67.2

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
@@ -8352,13 +8352,13 @@ var solanaWeb3 = (function (exports) {
8352
8352
  this._bn = new BN(value);
8353
8353
  }
8354
8354
 
8355
- if (this._bn.byteLength() > 32) {
8355
+ if (this._bn.byteLength() > PUBLIC_KEY_LENGTH) {
8356
8356
  throw new Error(`Invalid public key input`);
8357
8357
  }
8358
8358
  }
8359
8359
  }
8360
8360
  /**
8361
- * Returns a unique PublicKey for tests and benchmarks using acounter
8361
+ * Returns a unique PublicKey for tests and benchmarks using a counter
8362
8362
  */
8363
8363
 
8364
8364
 
@@ -8465,6 +8465,8 @@ var solanaWeb3 = (function (exports) {
8465
8465
  /**
8466
8466
  * Async version of createProgramAddressSync
8467
8467
  * For backwards compatibility
8468
+ *
8469
+ * @deprecated Use {@link createProgramAddressSync} instead
8468
8470
  */
8469
8471
 
8470
8472
  /* eslint-disable require-await */
@@ -8507,6 +8509,8 @@ var solanaWeb3 = (function (exports) {
8507
8509
  /**
8508
8510
  * Async version of findProgramAddressSync
8509
8511
  * For backwards compatibility
8512
+ *
8513
+ * @deprecated Use {@link findProgramAddressSync} instead
8510
8514
  */
8511
8515
 
8512
8516
 
@@ -12505,7 +12509,7 @@ var solanaWeb3 = (function (exports) {
12505
12509
  } = header;
12506
12510
  const numWritableSignedAccounts = numRequiredSignatures - numReadonlySignedAccounts;
12507
12511
  assert$1(numWritableSignedAccounts > 0, 'Message header is invalid');
12508
- const numWritableUnsignedAccounts = message.staticAccountKeys.length - numReadonlyUnsignedAccounts;
12512
+ const numWritableUnsignedAccounts = message.staticAccountKeys.length - numRequiredSignatures - numReadonlyUnsignedAccounts;
12509
12513
  assert$1(numWritableUnsignedAccounts >= 0, 'Message header is invalid');
12510
12514
  const accountKeys = message.getAccountKeys(args);
12511
12515
  const payerKey = accountKeys.get(0);
@@ -19632,7 +19636,7 @@ var solanaWeb3 = (function (exports) {
19632
19636
 
19633
19637
 
19634
19638
  async getFeeForMessage(message, commitment) {
19635
- const wireMessage = message.serialize().toString('base64');
19639
+ const wireMessage = toBuffer(message.serialize()).toString('base64');
19636
19640
 
19637
19641
  const args = this._buildArgs([wireMessage], commitment);
19638
19642