@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.
@@ -5643,7 +5643,7 @@ class Connection {
5643
5643
  const res = create(unsafeRes, jsonRpcResultAndContext(nullable(number())));
5644
5644
 
5645
5645
  if ('error' in res) {
5646
- throw new SolanaJSONRPCError(res.error, 'failed to get slot');
5646
+ throw new SolanaJSONRPCError(res.error, 'failed to get fee for message');
5647
5647
  }
5648
5648
 
5649
5649
  if (res.result === null) {
@@ -6748,7 +6748,7 @@ class Connection {
6748
6748
 
6749
6749
  _wsOnClose(code) {
6750
6750
  this._rpcWebSocketConnected = false;
6751
- this._rpcWebSocketGeneration++;
6751
+ this._rpcWebSocketGeneration = (this._rpcWebSocketGeneration + 1) % Number.MAX_SAFE_INTEGER;
6752
6752
 
6753
6753
  if (this._rpcWebSocketIdleTimeout) {
6754
6754
  clearTimeout(this._rpcWebSocketIdleTimeout);