@solana/web3.js 1.96.0 → 1.97.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/web3.js",
3
- "version": "1.96.0",
3
+ "version": "1.97.0",
4
4
  "description": "Solana Javascript API",
5
5
  "keywords": [
6
6
  "api",
package/src/connection.ts CHANGED
@@ -5353,7 +5353,7 @@ export class Connection {
5353
5353
  commitment?: Finality,
5354
5354
  ): Promise<ConfirmedTransaction | null> {
5355
5355
  const args = this._buildArgsAtLeastConfirmed([signature], commitment);
5356
- const unsafeRes = await this._rpcRequest('getConfirmedTransaction', args);
5356
+ const unsafeRes = await this._rpcRequest('getTransaction', args);
5357
5357
  const res = create(unsafeRes, GetTransactionRpcResult);
5358
5358
  if ('error' in res) {
5359
5359
  throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
@@ -5384,7 +5384,7 @@ export class Connection {
5384
5384
  commitment,
5385
5385
  'jsonParsed',
5386
5386
  );
5387
- const unsafeRes = await this._rpcRequest('getConfirmedTransaction', args);
5387
+ const unsafeRes = await this._rpcRequest('getTransaction', args);
5388
5388
  const res = create(unsafeRes, GetParsedTransactionRpcResult);
5389
5389
  if ('error' in res) {
5390
5390
  throw new SolanaJSONRPCError(
@@ -5411,7 +5411,7 @@ export class Connection {
5411
5411
  'jsonParsed',
5412
5412
  );
5413
5413
  return {
5414
- methodName: 'getConfirmedTransaction',
5414
+ methodName: 'getTransaction',
5415
5415
  args,
5416
5416
  };
5417
5417
  });