@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.cjs.js
CHANGED
|
@@ -7708,7 +7708,7 @@ class Connection {
|
|
|
7708
7708
|
*/
|
|
7709
7709
|
async getConfirmedTransaction(signature, commitment) {
|
|
7710
7710
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment);
|
|
7711
|
-
const unsafeRes = await this._rpcRequest('
|
|
7711
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
7712
7712
|
const res = superstruct.create(unsafeRes, GetTransactionRpcResult);
|
|
7713
7713
|
if ('error' in res) {
|
|
7714
7714
|
throw new SolanaJSONRPCError(res.error, 'failed to get transaction');
|
|
@@ -7730,7 +7730,7 @@ class Connection {
|
|
|
7730
7730
|
*/
|
|
7731
7731
|
async getParsedConfirmedTransaction(signature, commitment) {
|
|
7732
7732
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
7733
|
-
const unsafeRes = await this._rpcRequest('
|
|
7733
|
+
const unsafeRes = await this._rpcRequest('getTransaction', args);
|
|
7734
7734
|
const res = superstruct.create(unsafeRes, GetParsedTransactionRpcResult);
|
|
7735
7735
|
if ('error' in res) {
|
|
7736
7736
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed transaction');
|
|
@@ -7747,7 +7747,7 @@ class Connection {
|
|
|
7747
7747
|
const batch = signatures.map(signature => {
|
|
7748
7748
|
const args = this._buildArgsAtLeastConfirmed([signature], commitment, 'jsonParsed');
|
|
7749
7749
|
return {
|
|
7750
|
-
methodName: '
|
|
7750
|
+
methodName: 'getTransaction',
|
|
7751
7751
|
args
|
|
7752
7752
|
};
|
|
7753
7753
|
});
|