@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.
@@ -2230,6 +2230,8 @@ function decodeData(type, buffer) {
2230
2230
  const FeeCalculatorLayout = BufferLayout.nu64('lamportsPerSignature');
2231
2231
  /**
2232
2232
  * Calculator for transaction fees.
2233
+ *
2234
+ * @deprecated Deprecated since Solana v1.8.0.
2233
2235
  */
2234
2236
 
2235
2237
  /**
@@ -6265,8 +6267,13 @@ class Connection {
6265
6267
  */
6266
6268
 
6267
6269
 
6268
- async getParsedAccountInfo(publicKey, commitment) {
6269
- const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed');
6270
+ async getParsedAccountInfo(publicKey, commitmentOrConfig) {
6271
+ const {
6272
+ commitment,
6273
+ config
6274
+ } = extractCommitmentFromConfig(commitmentOrConfig);
6275
+
6276
+ const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
6270
6277
 
6271
6278
  const unsafeRes = await this._rpcRequest('getAccountInfo', args);
6272
6279
  const res = create(unsafeRes, jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));