@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.
@@ -2262,6 +2262,8 @@ function decodeData(type, buffer) {
2262
2262
  const FeeCalculatorLayout = BufferLayout__namespace.nu64('lamportsPerSignature');
2263
2263
  /**
2264
2264
  * Calculator for transaction fees.
2265
+ *
2266
+ * @deprecated Deprecated since Solana v1.8.0.
2265
2267
  */
2266
2268
 
2267
2269
  /**
@@ -6295,8 +6297,13 @@ class Connection {
6295
6297
  */
6296
6298
 
6297
6299
 
6298
- async getParsedAccountInfo(publicKey, commitment) {
6299
- const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed');
6300
+ async getParsedAccountInfo(publicKey, commitmentOrConfig) {
6301
+ const {
6302
+ commitment,
6303
+ config
6304
+ } = extractCommitmentFromConfig(commitmentOrConfig);
6305
+
6306
+ const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
6300
6307
 
6301
6308
  const unsafeRes = await this._rpcRequest('getAccountInfo', args);
6302
6309
  const res = superstruct.create(unsafeRes, jsonRpcResultAndContext(superstruct.nullable(ParsedAccountInfoResult)));