@solana/web3.js 1.51.0 → 1.52.0

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.cjs.js CHANGED
@@ -2288,6 +2288,8 @@ function decodeData(type, buffer) {
2288
2288
  const FeeCalculatorLayout = BufferLayout__namespace.nu64('lamportsPerSignature');
2289
2289
  /**
2290
2290
  * Calculator for transaction fees.
2291
+ *
2292
+ * @deprecated Deprecated since Solana v1.8.0.
2291
2293
  */
2292
2294
 
2293
2295
  /**
@@ -6381,8 +6383,13 @@ class Connection {
6381
6383
  */
6382
6384
 
6383
6385
 
6384
- async getParsedAccountInfo(publicKey, commitment) {
6385
- const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed');
6386
+ async getParsedAccountInfo(publicKey, commitmentOrConfig) {
6387
+ const {
6388
+ commitment,
6389
+ config
6390
+ } = extractCommitmentFromConfig(commitmentOrConfig);
6391
+
6392
+ const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
6386
6393
 
6387
6394
  const unsafeRes = await this._rpcRequest('getAccountInfo', args);
6388
6395
  const res = superstruct.create(unsafeRes, jsonRpcResultAndContext(superstruct.nullable(ParsedAccountInfoResult)));