@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.native.js
CHANGED
|
@@ -6858,7 +6858,7 @@ class Connection {
|
|
|
6858
6858
|
*/
|
|
6859
6859
|
async getConfirmedBlock(slot, commitment) {
|
|
6860
6860
|
const args = this._buildArgsAtLeastConfirmed([slot], commitment);
|
|
6861
|
-
const unsafeRes = await this._rpcRequest('
|
|
6861
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
6862
6862
|
const res = superstruct.create(unsafeRes, GetConfirmedBlockRpcResult);
|
|
6863
6863
|
if ('error' in res) {
|
|
6864
6864
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|
|
@@ -6940,7 +6940,7 @@ class Connection {
|
|
|
6940
6940
|
transactionDetails: 'signatures',
|
|
6941
6941
|
rewards: false
|
|
6942
6942
|
});
|
|
6943
|
-
const unsafeRes = await this._rpcRequest('
|
|
6943
|
+
const unsafeRes = await this._rpcRequest('getBlock', args);
|
|
6944
6944
|
const res = superstruct.create(unsafeRes, GetBlockSignaturesRpcResult);
|
|
6945
6945
|
if ('error' in res) {
|
|
6946
6946
|
throw new SolanaJSONRPCError(res.error, 'failed to get confirmed block');
|