@solana/web3.js 1.95.5 → 1.96.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/README.md +2 -1
- package/lib/index.browser.cjs.js +2 -2
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +2 -2
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +2 -2
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +2 -2
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +688 -259
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +11 -10
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +2 -2
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +2 -2
package/lib/index.browser.esm.js
CHANGED
|
@@ -6832,7 +6832,7 @@ class Connection {
|
|
|
6832
6832
|
*/
|
|
6833
6833
|
async getConfirmedBlock(slot, commitment) {
|
|
6834
6834
|
const args = this._buildArgsAtLeastConfirmed([slot], commitment);
|
|
6835
|
-
const unsafeRes = await this._rpcRequest('
|
|
6835
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
6836
6836
|
const res = create(unsafeRes, GetConfirmedBlockRpcResult);
|
|
6837
6837
|
if ('error' in res) {
|
|
6838
6838
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|
|
@@ -6914,7 +6914,7 @@ class Connection {
|
|
|
6914
6914
|
transactionDetails: 'signatures',
|
|
6915
6915
|
rewards: false
|
|
6916
6916
|
});
|
|
6917
|
-
const unsafeRes = await this._rpcRequest('
|
|
6917
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
6918
6918
|
const res = create(unsafeRes, GetBlockSignaturesRpcResult);
|
|
6919
6919
|
if ('error' in res) {
|
|
6920
6920
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|