@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.iife.js CHANGED
@@ -13985,6 +13985,8 @@ var solanaWeb3 = (function (exports) {
13985
13985
  const FeeCalculatorLayout = nu64('lamportsPerSignature');
13986
13986
  /**
13987
13987
  * Calculator for transaction fees.
13988
+ *
13989
+ * @deprecated Deprecated since Solana v1.8.0.
13988
13990
  */
13989
13991
 
13990
13992
  /**
@@ -21121,8 +21123,13 @@ var solanaWeb3 = (function (exports) {
21121
21123
  */
21122
21124
 
21123
21125
 
21124
- async getParsedAccountInfo(publicKey, commitment) {
21125
- const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed');
21126
+ async getParsedAccountInfo(publicKey, commitmentOrConfig) {
21127
+ const {
21128
+ commitment,
21129
+ config
21130
+ } = extractCommitmentFromConfig(commitmentOrConfig);
21131
+
21132
+ const args = this._buildArgs([publicKey.toBase58()], commitment, 'jsonParsed', config);
21126
21133
 
21127
21134
  const unsafeRes = await this._rpcRequest('getAccountInfo', args);
21128
21135
  const res = create(unsafeRes, jsonRpcResultAndContext(nullable(ParsedAccountInfoResult)));