@solana/web3.js 1.87.4 → 1.87.6
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 +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 +2 -2
- 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 +2 -2
- package/lib/index.native.js.map +1 -1
- package/package.json +3 -3
- package/src/connection.ts +1 -1
- package/src/utils/makeWebsocketUrl.ts +1 -1
package/lib/index.browser.cjs.js
CHANGED
|
@@ -3563,7 +3563,7 @@ function makeWebsocketUrl(endpoint) {
|
|
|
3563
3563
|
const startPort = portWithColon == null ? null : parseInt(portWithColon.slice(1), 10);
|
|
3564
3564
|
const websocketPort =
|
|
3565
3565
|
// Only shift the port by +1 as a convention for ws(s) only if given endpoint
|
|
3566
|
-
// is
|
|
3566
|
+
// is explicitly specifying the endpoint port (HTTP-based RPC), assuming
|
|
3567
3567
|
// we're directly trying to connect to solana-validator's ws listening port.
|
|
3568
3568
|
// When the endpoint omits the port, we're connecting to the protocol
|
|
3569
3569
|
// default ports: http(80) or https(443) and it's assumed we're behind a reverse
|
|
@@ -4826,7 +4826,7 @@ const GetBlockSignaturesRpcResult = jsonRpcResult(superstruct.nullable(superstru
|
|
|
4826
4826
|
*/
|
|
4827
4827
|
const GetTransactionRpcResult = jsonRpcResult(superstruct.nullable(superstruct.type({
|
|
4828
4828
|
slot: superstruct.number(),
|
|
4829
|
-
meta: ConfirmedTransactionMetaResult,
|
|
4829
|
+
meta: superstruct.nullable(ConfirmedTransactionMetaResult),
|
|
4830
4830
|
blockTime: superstruct.optional(superstruct.nullable(superstruct.number())),
|
|
4831
4831
|
transaction: ConfirmedTransactionResult,
|
|
4832
4832
|
version: superstruct.optional(TransactionVersionStruct)
|