@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.cjs.js
CHANGED
|
@@ -7607,7 +7607,7 @@ class Connection {
|
|
|
7607
7607
|
*/
|
|
7608
7608
|
async getConfirmedBlock(slot, commitment) {
|
|
7609
7609
|
const args = this._buildArgsAtLeastConfirmed([slot], commitment);
|
|
7610
|
-
const unsafeRes = await this._rpcRequest('
|
|
7610
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
7611
7611
|
const res = superstruct.create(unsafeRes, GetConfirmedBlockRpcResult);
|
|
7612
7612
|
if ('error' in res) {
|
|
7613
7613
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|
|
@@ -7689,7 +7689,7 @@ class Connection {
|
|
|
7689
7689
|
transactionDetails: 'signatures',
|
|
7690
7690
|
rewards: false
|
|
7691
7691
|
});
|
|
7692
|
-
const unsafeRes = await this._rpcRequest('
|
|
7692
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
7693
7693
|
const res = superstruct.create(unsafeRes, GetBlockSignaturesRpcResult);
|
|
7694
7694
|
if ('error' in res) {
|
|
7695
7695
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|