@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.
@@ -5673,7 +5673,7 @@ class Connection {
5673
5673
  const res = superstruct.create(unsafeRes, jsonRpcResultAndContext(superstruct.nullable(superstruct.number())));
5674
5674
 
5675
5675
  if ('error' in res) {
5676
- throw new SolanaJSONRPCError(res.error, 'failed to get slot');
5676
+ throw new SolanaJSONRPCError(res.error, 'failed to get fee for message');
5677
5677
  }
5678
5678
 
5679
5679
  if (res.result === null) {
@@ -6778,7 +6778,7 @@ class Connection {
6778
6778
 
6779
6779
  _wsOnClose(code) {
6780
6780
  this._rpcWebSocketConnected = false;
6781
- this._rpcWebSocketGeneration++;
6781
+ this._rpcWebSocketGeneration = (this._rpcWebSocketGeneration + 1) % Number.MAX_SAFE_INTEGER;
6782
6782
 
6783
6783
  if (this._rpcWebSocketIdleTimeout) {
6784
6784
  clearTimeout(this._rpcWebSocketIdleTimeout);