@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/lib/index.browser.cjs.js +3 -3
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +3 -3
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +3 -3
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +3 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +3 -3
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +3 -3
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +3 -3
package/package.json
CHANGED
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('
|
|
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('
|
|
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: '
|
|
5414
|
+
methodName: 'getTransaction',
|
|
5415
5415
|
args,
|
|
5416
5416
|
};
|
|
5417
5417
|
});
|