@solana/errors 4.0.0 → 5.0.0-canary-20251023185005

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/dist/cli.mjs CHANGED
@@ -4,7 +4,7 @@ import { Command, InvalidArgumentError } from 'commander';
4
4
  // src/cli.ts
5
5
 
6
6
  // package.json
7
- var version = "4.0.0";
7
+ var version = "5.0.0-canary-20251023185005";
8
8
 
9
9
  // src/context.ts
10
10
  function decodeEncodedContext(encodedContext) {
@@ -663,7 +663,7 @@ function getSolanaErrorFromRpcError({ errorCodeBaseOffset, getErrorContext, orde
663
663
 
664
664
  // src/instruction-error.ts
665
665
  var ORDERED_ERROR_NAMES = [
666
- // Keep synced with RPC source: https://github.com/anza-xyz/agave/blob/master/sdk/program/src/instruction.rs
666
+ // Keep synced with RPC source: https://github.com/anza-xyz/solana-sdk/blob/master/instruction-error/src/lib.rs
667
667
  // If this list ever gets too large, consider implementing a compression strategy like this:
668
668
  // https://gist.github.com/steveluscher/aaa7cbbb5433b1197983908a40860c47
669
669
  "GenericError",
@@ -738,11 +738,6 @@ function getSolanaErrorFromInstructionError(index, instructionError) {
738
738
  code: Number(rpcErrorContext),
739
739
  index: numberIndex
740
740
  };
741
- } else if (errorCode === SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR) {
742
- return {
743
- encodedData: rpcErrorContext,
744
- index: numberIndex
745
- };
746
741
  }
747
742
  return { index: numberIndex };
748
743
  },