@solana/web3.js 1.66.0 → 1.66.2
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 +10 -10
- package/src/connection.ts +3 -2
package/lib/index.cjs.js
CHANGED
|
@@ -5739,7 +5739,7 @@ class Connection {
|
|
|
5739
5739
|
const res = superstruct.create(unsafeRes, jsonRpcResultAndContext(superstruct.nullable(superstruct.number())));
|
|
5740
5740
|
|
|
5741
5741
|
if ('error' in res) {
|
|
5742
|
-
throw new SolanaJSONRPCError(res.error, 'failed to get
|
|
5742
|
+
throw new SolanaJSONRPCError(res.error, 'failed to get fee for message');
|
|
5743
5743
|
}
|
|
5744
5744
|
|
|
5745
5745
|
if (res.result === null) {
|
|
@@ -6844,7 +6844,7 @@ class Connection {
|
|
|
6844
6844
|
|
|
6845
6845
|
_wsOnClose(code) {
|
|
6846
6846
|
this._rpcWebSocketConnected = false;
|
|
6847
|
-
this._rpcWebSocketGeneration
|
|
6847
|
+
this._rpcWebSocketGeneration = (this._rpcWebSocketGeneration + 1) % Number.MAX_SAFE_INTEGER;
|
|
6848
6848
|
|
|
6849
6849
|
if (this._rpcWebSocketIdleTimeout) {
|
|
6850
6850
|
clearTimeout(this._rpcWebSocketIdleTimeout);
|