@solana/web3.js 1.95.5 → 1.96.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.esm.js CHANGED
@@ -7577,7 +7577,7 @@ class Connection {
7577
7577
  */
7578
7578
  async getConfirmedBlock(slot, commitment) {
7579
7579
  const args = this._buildArgsAtLeastConfirmed([slot], commitment);
7580
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
7580
+ const unsafeRes = await this._rpcRequest('getBlock', args);
7581
7581
  const res = create(unsafeRes, GetConfirmedBlockRpcResult);
7582
7582
  if ('error' in res) {
7583
7583
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
@@ -7659,7 +7659,7 @@ class Connection {
7659
7659
  transactionDetails: 'signatures',
7660
7660
  rewards: false
7661
7661
  });
7662
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
7662
+ const unsafeRes = await this._rpcRequest('getBlock', args);
7663
7663
  const res = create(unsafeRes, GetBlockSignaturesRpcResult);
7664
7664
  if ('error' in res) {
7665
7665
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');