@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.esm.js
CHANGED
|
@@ -7678,7 +7678,7 @@ class Connection {
|
|
|
7678
7678
|
*/
|
|
7679
7679
|
async getConfirmedTransaction(signature, commitment) {
|
|
7680
7680
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment);
|
|
7681
|
-
const unsafeRes = await this._rpcRequest('
|
|
7681
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
7682
7682
|
const res = create(unsafeRes, GetTransactionRpcResult);
|
|
7683
7683
|
if ('error' in res) {
|
|
7684
7684
|
throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
|
|
@@ -7700,7 +7700,7 @@ class Connection {
|
|
|
7700
7700
|
*/
|
|
7701
7701
|
async getParsedConfirmedTransaction(signature, commitment) {
|
|
7702
7702
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
7703
|
-
const unsafeRes = await this._rpcRequest('
|
|
7703
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
7704
7704
|
const res = create(unsafeRes, GetParsedTransactionRpcResult);
|
|
7705
7705
|
if ('error' in res) {
|
|
7706
7706
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed transaction');
|
|
@@ -7717,7 +7717,7 @@ class Connection {
|
|
|
7717
7717
|
const batch = signatures.map(signature => {
|
|
7718
7718
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
7719
7719
|
return {
|
|
7720
|
-
methodName: '
|
|
7720
|
+
methodName: 'getTransaction',
|
|
7721
7721
|
args
|
|
7722
7722
|
};
|
|
7723
7723
|
});
|