@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.
@@ -661,7 +661,7 @@ function getSolanaErrorFromRpcError({ errorCodeBaseOffset, getErrorContext, orde
661
661
 
662
662
  // src/instruction-error.ts
663
663
  var ORDERED_ERROR_NAMES = [
664
- // Keep synced with RPC source: https://github.com/anza-xyz/agave/blob/master/sdk/program/src/instruction.rs
664
+ // Keep synced with RPC source: https://github.com/anza-xyz/solana-sdk/blob/master/instruction-error/src/lib.rs
665
665
  // If this list ever gets too large, consider implementing a compression strategy like this:
666
666
  // https://gist.github.com/steveluscher/aaa7cbbb5433b1197983908a40860c47
667
667
  "GenericError",
@@ -736,11 +736,6 @@ function getSolanaErrorFromInstructionError(index, instructionError) {
736
736
  code: Number(rpcErrorContext),
737
737
  index: numberIndex
738
738
  };
739
- } else if (errorCode === SOLANA_ERROR__INSTRUCTION_ERROR__BORSH_IO_ERROR) {
740
- return {
741
- encodedData: rpcErrorContext,
742
- index: numberIndex
743
- };
744
739
  }
745
740
  return { index: numberIndex };
746
741
  },