@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.cjs.js CHANGED
@@ -7607,7 +7607,7 @@ class Connection {
7607
7607
  */
7608
7608
  async getConfirmedBlock(slot, commitment) {
7609
7609
  const args = this._buildArgsAtLeastConfirmed([slot], commitment);
7610
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
7610
+ const unsafeRes = await this._rpcRequest('getBlock', args);
7611
7611
  const res = superstruct.create(unsafeRes, GetConfirmedBlockRpcResult);
7612
7612
  if ('error' in res) {
7613
7613
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
@@ -7689,7 +7689,7 @@ class Connection {
7689
7689
  transactionDetails: 'signatures',
7690
7690
  rewards: false
7691
7691
  });
7692
- const unsafeRes = await this._rpcRequest('getConfirmedBlock', args);
7692
+ const unsafeRes = await this._rpcRequest('getBlock', args);
7693
7693
  const res = superstruct.create(unsafeRes, GetBlockSignaturesRpcResult);
7694
7694
  if ('error' in res) {
7695
7695
  throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');