@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/lib/index.browser.esm.js
CHANGED
|
@@ -6933,7 +6933,7 @@ class Connection {
|
|
|
6933
6933
|
*/
|
|
6934
6934
|
async getConfirmedTransaction(signature, commitment) {
|
|
6935
6935
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment);
|
|
6936
|
-
const unsafeRes = await this._rpcRequest('
|
|
6936
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
6937
6937
|
const res = create(unsafeRes, GetTransactionRpcResult);
|
|
6938
6938
|
if ('error' in res) {
|
|
6939
6939
|
throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
|
|
@@ -6955,7 +6955,7 @@ class Connection {
|
|
|
6955
6955
|
*/
|
|
6956
6956
|
async getParsedConfirmedTransaction(signature, commitment) {
|
|
6957
6957
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
6958
|
-
const unsafeRes = await this._rpcRequest('
|
|
6958
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
6959
6959
|
const res = create(unsafeRes, GetParsedTransactionRpcResult);
|
|
6960
6960
|
if ('error' in res) {
|
|
6961
6961
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed transaction');
|
|
@@ -6972,7 +6972,7 @@ class Connection {
|
|
|
6972
6972
|
const batch = signatures.map(signature => {
|
|
6973
6973
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
6974
6974
|
return {
|
|
6975
|
-
methodName: '
|
|
6975
|
+
methodName: 'getTransaction',
|
|
6976
6976
|
args
|
|
6977
6977
|
};
|
|
6978
6978
|
});
|